hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [4/6] hbase git commit: HBASE-15622 Superusers does not consider the keytab credentials
Date Fri, 15 Apr 2016 15:42:36 GMT
HBASE-15622 Superusers does not consider the keytab credentials


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c86d17d4
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c86d17d4
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c86d17d4

Branch: refs/heads/branch-1.2
Commit: c86d17d416251a9bfad11aa98f4c9968e23e2b35
Parents: cdf56ec
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Fri Apr 15 08:28:39 2016 -0700
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Fri Apr 15 08:35:28 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c86d17d4/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index 68c5ddf..816659a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -502,7 +502,6 @@ public class HRegionServer extends HasThread implements
     this.conf = 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);
@@ -551,6 +550,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();
     uncaughtExceptionHandler = new UncaughtExceptionHandler() {


Mime
View raw message