YARN-2805. Fixed ResourceManager to load HA configs correctly before kerberos login. Contributed by Wangda Tan.
(cherry picked from commit 834e931d8e
)
This commit is contained in:
parent
f172a08238
commit
3bc31e35a6
|
@ -838,6 +838,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
YARN-2767. Added a test case to verify that http static user cannot kill or submit
|
YARN-2767. Added a test case to verify that http static user cannot kill or submit
|
||||||
apps in the secure mode. (Varun Vasudev via zjshen)
|
apps in the secure mode. (Varun Vasudev via zjshen)
|
||||||
|
|
||||||
|
YARN-2805. Fixed ResourceManager to load HA configs correctly before kerberos
|
||||||
|
login. (Wangda Tan via vinodkv)
|
||||||
|
|
||||||
Release 2.5.2 - UNRELEASED
|
Release 2.5.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -194,6 +194,12 @@ public class ResourceManager extends CompositeService implements Recoverable {
|
||||||
this.conf = conf;
|
this.conf = conf;
|
||||||
this.rmContext = new RMContextImpl();
|
this.rmContext = new RMContextImpl();
|
||||||
|
|
||||||
|
// Set HA configuration should be done before login
|
||||||
|
this.rmContext.setHAEnabled(HAUtil.isHAEnabled(this.conf));
|
||||||
|
if (this.rmContext.isHAEnabled()) {
|
||||||
|
HAUtil.verifyAndSetConfiguration(this.conf);
|
||||||
|
}
|
||||||
|
|
||||||
// Set UGI and do login
|
// Set UGI and do login
|
||||||
// If security is enabled, use login user
|
// If security is enabled, use login user
|
||||||
// If security is not enabled, use current user
|
// If security is not enabled, use current user
|
||||||
|
@ -246,11 +252,6 @@ public class ResourceManager extends CompositeService implements Recoverable {
|
||||||
addService(adminService);
|
addService(adminService);
|
||||||
rmContext.setRMAdminService(adminService);
|
rmContext.setRMAdminService(adminService);
|
||||||
|
|
||||||
this.rmContext.setHAEnabled(HAUtil.isHAEnabled(this.conf));
|
|
||||||
if (this.rmContext.isHAEnabled()) {
|
|
||||||
HAUtil.verifyAndSetConfiguration(this.conf);
|
|
||||||
}
|
|
||||||
|
|
||||||
createAndInitActiveServices();
|
createAndInitActiveServices();
|
||||||
|
|
||||||
webAppAddress = WebAppUtils.getWebAppBindURL(this.conf,
|
webAppAddress = WebAppUtils.getWebAppBindURL(this.conf,
|
||||||
|
|
Loading…
Reference in New Issue