YARN-11504. [Addendum] [Federation] YARN Federation Supports Non-HA mode. (#5746)
This commit is contained in:
parent
f4b70b353d
commit
f4accec379
@ -130,8 +130,11 @@ protected static <T> T createRMProxy(final Configuration configuration,
|
|||||||
protected static <T> T createRMProxyFederation(final Configuration configuration,
|
protected static <T> T createRMProxyFederation(final Configuration configuration,
|
||||||
final Class<T> protocol, RMProxy<T> instance) throws IOException {
|
final Class<T> protocol, RMProxy<T> instance) throws IOException {
|
||||||
YarnConfiguration yarnConf = new YarnConfiguration(configuration);
|
YarnConfiguration yarnConf = new YarnConfiguration(configuration);
|
||||||
RetryPolicy retryPolicy = createRetryPolicy(yarnConf, isFailoverEnabled(yarnConf));
|
if (isFederationNonHAEnabled(yarnConf)) {
|
||||||
return newProxyInstanceFederation(yarnConf, protocol, instance, retryPolicy);
|
RetryPolicy retryPolicy = createRetryPolicy(yarnConf, isFailoverEnabled(yarnConf));
|
||||||
|
return newProxyInstanceFederation(yarnConf, protocol, instance, retryPolicy);
|
||||||
|
}
|
||||||
|
return createRMProxy(configuration, protocol, instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static <T> T newProxyInstanceFederation(final YarnConfiguration conf,
|
protected static <T> T newProxyInstanceFederation(final YarnConfiguration conf,
|
||||||
|
Loading…
Reference in New Issue
Block a user