HBASE-15622 Superusers does not consider the keytab credentials
This commit is contained in:
parent
a9f1c4a871
commit
3e42f82600
|
@ -517,7 +517,6 @@ public class HRegionServer extends HasThread implements
|
|||
HFile.checkHFileVersion(this.conf);
|
||||
checkCodecs(this.conf);
|
||||
this.userProvider = UserProvider.instantiate(conf);
|
||||
Superusers.initialize(conf);
|
||||
FSUtils.setupShortCircuitRead(this.conf);
|
||||
// Disable usage of meta replicas in the regionserver
|
||||
this.conf.setBoolean(HConstants.USE_META_REPLICAS, false);
|
||||
|
@ -566,6 +565,9 @@ public class HRegionServer extends HasThread implements
|
|||
HConstants.ZK_CLIENT_KERBEROS_PRINCIPAL, hostName);
|
||||
// login the server principal (if using secure Hadoop)
|
||||
login(userProvider, hostName);
|
||||
// init superusers and add the server principal (if using security)
|
||||
// or process owner as default super user.
|
||||
Superusers.initialize(conf);
|
||||
|
||||
regionServerAccounting = new RegionServerAccounting();
|
||||
cacheConfig = new CacheConfig(conf);
|
||||
|
|
Loading…
Reference in New Issue