HDFS-15719. [Hadoop 3] Both NameNodes can crash simultaneously due to the short JN socket timeout (#2533)

(cherry picked from commit 2b4febcf57)
This commit is contained in:
Wei-Chiu Chuang 2021-01-04 20:54:44 -08:00
parent 6340ac857b
commit 94c126cc9e
5 changed files with 5 additions and 5 deletions

View File

@ -1017,6 +1017,6 @@ public class CommonConfigurationKeysPublic {
*/
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;
public static final int HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT = 60000;
}

View File

@ -148,7 +148,7 @@ public final class HttpServer2 implements FilterContainer {
// idle timeout in milliseconds
public static final String HTTP_IDLE_TIMEOUT_MS_KEY =
"hadoop.http.idle_timeout.ms";
public static final int HTTP_IDLE_TIMEOUT_MS_DEFAULT = 10000;
public static final int HTTP_IDLE_TIMEOUT_MS_DEFAULT = 60000;
public static final String HTTP_TEMP_DIR_KEY = "hadoop.http.temp.dir";
public static final String FILTER_INITIALIZER_PROPERTY

View File

@ -50,7 +50,7 @@
<property>
<name>hadoop.http.idle_timeout.ms</name>
<value>1000</value>
<value>60000</value>
<description>
NN/JN/DN Server connection timeout in milliseconds.
</description>

View File

@ -103,7 +103,7 @@
<property>
<name>hadoop.http.idle_timeout.ms</name>
<value>1000</value>
<value>60000</value>
<description>
KMS Server connection timeout in milliseconds.
</description>

View File

@ -56,7 +56,7 @@
<!-- HTTP properties -->
<property>
<name>hadoop.http.idle_timeout.ms</name>
<value>1000</value>
<value>60000</value>
<description>
Httpfs Server connection timeout in milliseconds.
</description>