MAPREDUCE-5616. MR Client-AppMaster RPC max retries on socket timeout is too high. Contributed by Chris Nauroth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1542001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
797159bbd4
commit
88c4d4a714
|
@ -217,6 +217,9 @@ Release 2.3.0 - UNRELEASED
|
||||||
|
|
||||||
MAPREDUCE-5610. TestSleepJob fails in jdk7 (Jonathan Eagles via jlowe)
|
MAPREDUCE-5610. TestSleepJob fails in jdk7 (Jonathan Eagles via jlowe)
|
||||||
|
|
||||||
|
MAPREDUCE-5616. MR Client-AppMaster RPC max retries on socket timeout is too
|
||||||
|
high. (cnauroth)
|
||||||
|
|
||||||
Release 2.2.1 - UNRELEASED
|
Release 2.2.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -357,13 +357,21 @@ public interface MRJobConfig {
|
||||||
|
|
||||||
public static final String MR_AM_PREFIX = MR_PREFIX + "am.";
|
public static final String MR_AM_PREFIX = MR_PREFIX + "am.";
|
||||||
|
|
||||||
/** The number of client retires to the AM - before reconnecting to the RM
|
/** The number of client retries to the AM - before reconnecting to the RM
|
||||||
* to fetch Application State.
|
* to fetch Application State.
|
||||||
*/
|
*/
|
||||||
public static final String MR_CLIENT_TO_AM_IPC_MAX_RETRIES =
|
public static final String MR_CLIENT_TO_AM_IPC_MAX_RETRIES =
|
||||||
MR_PREFIX + "client-am.ipc.max-retries";
|
MR_PREFIX + "client-am.ipc.max-retries";
|
||||||
public static final int DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES = 3;
|
public static final int DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES = 3;
|
||||||
|
|
||||||
|
/** The number of client retries on socket timeouts to the AM - before
|
||||||
|
* reconnecting to the RM to fetch Application Status.
|
||||||
|
*/
|
||||||
|
public static final String MR_CLIENT_TO_AM_IPC_MAX_RETRIES_ON_TIMEOUTS =
|
||||||
|
MR_PREFIX + "yarn.app.mapreduce.client-am.ipc.max-retries-on-timeouts";
|
||||||
|
public static final int
|
||||||
|
DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES_ON_TIMEOUTS = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of client retries to the RM/HS before throwing exception.
|
* The number of client retries to the RM/HS before throwing exception.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1010,6 +1010,13 @@
|
||||||
to the RM to fetch Application Status.</description>
|
to the RM to fetch Application Status.</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
<property>
|
||||||
|
<name>yarn.app.mapreduce.client-am.ipc.max-retries-on-timeouts</name>
|
||||||
|
<value>3</value>
|
||||||
|
<description>The number of client retries on socket timeouts to the AM - before
|
||||||
|
reconnecting to the RM to fetch Application Status.</description>
|
||||||
|
</property>
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
<name>yarn.app.mapreduce.client.max-retries</name>
|
<name>yarn.app.mapreduce.client.max-retries</name>
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
|
|
|
@ -107,6 +107,10 @@ public class ClientServiceDelegate {
|
||||||
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY,
|
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY,
|
||||||
this.conf.getInt(MRJobConfig.MR_CLIENT_TO_AM_IPC_MAX_RETRIES,
|
this.conf.getInt(MRJobConfig.MR_CLIENT_TO_AM_IPC_MAX_RETRIES,
|
||||||
MRJobConfig.DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES));
|
MRJobConfig.DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES));
|
||||||
|
this.conf.setInt(
|
||||||
|
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY,
|
||||||
|
this.conf.getInt(MRJobConfig.MR_CLIENT_TO_AM_IPC_MAX_RETRIES_ON_TIMEOUTS,
|
||||||
|
MRJobConfig.DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES_ON_TIMEOUTS));
|
||||||
this.rm = rm;
|
this.rm = rm;
|
||||||
this.jobId = jobId;
|
this.jobId = jobId;
|
||||||
this.historyServerProxy = historyServerProxy;
|
this.historyServerProxy = historyServerProxy;
|
||||||
|
|
Loading…
Reference in New Issue