Skip to content

Commit

Permalink
YARN-6128. Add support for AMRMProxy HA. (Botong Huang via Subru).
Browse files Browse the repository at this point in the history
  • Loading branch information
subru committed Nov 18, 2017
1 parent 0940e4f commit d5f6688
Show file tree
Hide file tree
Showing 21 changed files with 1,345 additions and 279 deletions.
Expand Up @@ -2096,6 +2096,9 @@ public static boolean isAclEnabled(Configuration conf) {
public static final String DEFAULT_AMRM_PROXY_INTERCEPTOR_CLASS_PIPELINE =
"org.apache.hadoop.yarn.server.nodemanager.amrmproxy."
+ "DefaultRequestInterceptor";
public static final String AMRM_PROXY_HA_ENABLED = NM_PREFIX
+ "amrmproxy.ha.enable";
public static final boolean DEFAULT_AMRM_PROXY_HA_ENABLED = false;

/**
* Default platform-agnostic CLASSPATH for YARN applications. A
Expand Down Expand Up @@ -2930,6 +2933,11 @@ public static boolean isAclEnabled(Configuration conf) {
public static final String FEDERATION_CACHE_TIME_TO_LIVE_SECS =
FEDERATION_PREFIX + "cache-ttl.secs";

public static final String FEDERATION_REGISTRY_BASE_KEY =
FEDERATION_PREFIX + "registry.base-dir";
public static final String DEFAULT_FEDERATION_REGISTRY_BASE_KEY =
"yarnfederation/";

// 5 minutes
public static final int DEFAULT_FEDERATION_CACHE_TIME_TO_LIVE_SECS = 5 * 60;

Expand Down Expand Up @@ -3087,6 +3095,11 @@ public static boolean isAclEnabled(Configuration conf) {
// Other Configs
////////////////////////////////

public static final String YARN_REGISTRY_CLASS =
YARN_PREFIX + "registry.class";
public static final String DEFAULT_YARN_REGISTRY_CLASS =
"org.apache.hadoop.registry.client.impl.FSRegistryOperationsService";

/**
* Use YARN_CLIENT_APPLICATION_CLIENT_PROTOCOL_POLL_INTERVAL_MS instead.
* The interval of the yarn client's querying application state after
Expand Down
Expand Up @@ -2826,7 +2826,20 @@
<value>300</value>
</property>

<property>
<description>The registry base directory for federation.</description>
<name>yarn.federation.registry.base-dir</name>
<value>yarnfederation/</value>
</property>

<!-- Other Configuration -->

<property>
<description>The registry implementation to use.</description>
<name>yarn.registry.class</name>
<value>org.apache.hadoop.registry.client.impl.FSRegistryOperationsService</value>
</property>

<property>
<description>The interval that the yarn client library uses to poll the
completion status of the asynchronous API of application client protocol.
Expand Down Expand Up @@ -2987,6 +3000,14 @@
<value>org.apache.hadoop.yarn.server.nodemanager.amrmproxy.DefaultRequestInterceptor</value>
</property>

<property>
<description>
Whether AMRMProxy HA is enabled.
</description>
<name>yarn.nodemanager.amrmproxy.ha.enable</name>
<value>false</value>
</property>

<property>
<description>
Setting that controls whether distributed scheduling is enabled.
Expand Down
Expand Up @@ -66,6 +66,11 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-registry</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down

0 comments on commit d5f6688

Please sign in to comment.