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,
|
||||
final Class<T> protocol, RMProxy<T> instance) throws IOException {
|
||||
YarnConfiguration yarnConf = new YarnConfiguration(configuration);
|
||||
RetryPolicy retryPolicy = createRetryPolicy(yarnConf, isFailoverEnabled(yarnConf));
|
||||
return newProxyInstanceFederation(yarnConf, protocol, instance, retryPolicy);
|
||||
if (isFederationNonHAEnabled(yarnConf)) {
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user