HDFS-15719. [Hadoop 3] Both NameNodes can crash simultaneously due to the short JN socket timeout (#2533)
(cherry picked from commit2b4febcf57
) (cherry picked from commit94c126cc9e
) (cherry picked from commit8af0fcf628
)
This commit is contained in:
parent
5d0eb4c6f0
commit
13768fe6f0
|
@ -947,6 +947,6 @@ public class CommonConfigurationKeysPublic {
|
||||||
*/
|
*/
|
||||||
public static final String HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY =
|
public static final String HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY =
|
||||||
"hadoop.http.idle_timeout.ms";
|
"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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ public final class HttpServer2 implements FilterContainer {
|
||||||
// idle timeout in milliseconds
|
// idle timeout in milliseconds
|
||||||
public static final String HTTP_IDLE_TIMEOUT_MS_KEY =
|
public static final String HTTP_IDLE_TIMEOUT_MS_KEY =
|
||||||
"hadoop.http.idle_timeout.ms";
|
"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 HTTP_TEMP_DIR_KEY = "hadoop.http.temp.dir";
|
||||||
|
|
||||||
public static final String FILTER_INITIALIZER_PROPERTY
|
public static final String FILTER_INITIALIZER_PROPERTY
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
<name>hadoop.http.idle_timeout.ms</name>
|
<name>hadoop.http.idle_timeout.ms</name>
|
||||||
<value>1000</value>
|
<value>60000</value>
|
||||||
<description>
|
<description>
|
||||||
NN/JN/DN Server connection timeout in milliseconds.
|
NN/JN/DN Server connection timeout in milliseconds.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
<name>hadoop.http.idle_timeout.ms</name>
|
<name>hadoop.http.idle_timeout.ms</name>
|
||||||
<value>1000</value>
|
<value>60000</value>
|
||||||
<description>
|
<description>
|
||||||
KMS Server connection timeout in milliseconds.
|
KMS Server connection timeout in milliseconds.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<!-- HTTP properties -->
|
<!-- HTTP properties -->
|
||||||
<property>
|
<property>
|
||||||
<name>hadoop.http.idle_timeout.ms</name>
|
<name>hadoop.http.idle_timeout.ms</name>
|
||||||
<value>1000</value>
|
<value>60000</value>
|
||||||
<description>
|
<description>
|
||||||
Httpfs Server connection timeout in milliseconds.
|
Httpfs Server connection timeout in milliseconds.
|
||||||
</description>
|
</description>
|
||||||
|
|
Loading…
Reference in New Issue