This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 50ba194 HADOOP-16886. Add hadoop.http.idle_timeout.ms to
core-default.xml. Contributed by Lisheng Sun.
50ba194 is described below
commit 50ba1949ee3a4d25ab1ee9ecace5c3a43939d6b1
Author: Ayush Saxena <[email protected]>
AuthorDate: Fri May 1 14:27:24 2020 +0530
HADOOP-16886. Add hadoop.http.idle_timeout.ms to core-default.xml.
Contributed by Lisheng Sun.
---
.../java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java | 8 ++++++++
.../hadoop-common/src/main/resources/core-default.xml | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
index ba4d18f..a2c2778 100644
---
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
+++
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
@@ -957,5 +957,13 @@ public class CommonConfigurationKeysPublic {
/** Default shutdown hook timeout: {@value} seconds. */
public static final long SERVICE_SHUTDOWN_TIMEOUT_DEFAULT = 30;
+ /**
+ * @see
+ * <a
href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
+ * core-default.xml</a>
+ */
+ public static final String HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY =
+ "hadoop.http.idle_timeout.ms";
+ public static final int HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT = 1000;
}
diff --git
a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
index 454b05f..4374fb3 100644
--- a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
+++ b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
@@ -48,6 +48,14 @@
ordering of the filters.</description>
</property>
+ <property>
+ <name>hadoop.http.idle_timeout.ms</name>
+ <value>1000</value>
+ <description>
+ NN/JN/DN Server connection timeout in milliseconds.
+ </description>
+ </property>
+
<!--- security properties -->
<property>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]