Network Timeout for HttpFS
The network timeout is the amount of idle time (in milliseconds) that can pass before the
HttpFS network connection closes automatically. Depending on your installed EEP, you can use one of the following properties to control
the network timeout:
*For a guide to the supported EEPs, see
Ecosystem Pack Support and Lifecycle Status.
| EEP* | Timeout Property | Default Timeout (ms) | Config File |
|---|---|---|---|
| 9.0.0 and later | hadoop.http.idle_timeout.ms |
60000 | /opt/mapr/hadoop/hadoop-<version>/etc/hadoop/httpfs-site.xml |
| 7.0.0 through 8.1.0 | hadoop.http.max_idle_time.ms |
10000 | |
If your applications require the network connection to remain open longer than the default
timeout, consider increasing the timeout value. To change the timeout value:
- Add a timeout property to the
httpfs-site.xmlfile. For the appropriate property and the location of thehttpfs-site.xmlfile, see the nearby table.For example, in a cluster installed with EEP 7.0.0, adding the following property to/opt/mapr/httpfs/httpfs-<version>/etc/hadoop/httpfs-site.xmlsets a timeout value of 30 seconds:<property> <name>hadoop.http.max_idle_time.ms</name> <value>30000</value> </property> - Restart the HttpFS server so the changes take
effect:
maprcli node services -name httpfs -action restart -nodes <node_name>