YARN-11504. [Addendum] [Federation] YARN Federation Supports Non-HA mode. (#5746)

This commit is contained in:
yl09099 2023-06-14 23:40:31 +08:00 committed by GitHub
parent f4b70b353d
commit f4accec379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,