Repository: hbase
Updated Branches:
  refs/heads/0.98 2d68af900 -> 602884b84
  refs/heads/branch-1 6588ca565 -> cdf2c01a7


HBASE-14580 Make the HBaseMiniCluster compliant with Kerberos


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

Branch: refs/heads/branch-1
Commit: cdf2c01a76767aa221738b1c9cc1036aed9a6113
Parents: 6588ca5
Author: Nicolas Liochon <nkey...@gmail.com>
Authored: Tue Oct 13 19:12:23 2015 +0200
Committer: Andrew Purtell <apurt...@apache.org>
Committed: Fri Oct 23 11:42:30 2015 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/cdf2c01a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
index a26a3bc..0137a83 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
@@ -3289,7 +3289,7 @@ public class HBaseTestingUtility extends 
HBaseCommonTestingUtility {
   /**
    * This method clones the passed <code>c</code> configuration setting a new
    * user into the clone.  Use it getting new instances of FileSystem.  Only
-   * works for DistributedFileSystem.
+   * works for DistributedFileSystem w/o Kerberos.
    * @param c Initial configuration
    * @param differentiatingSuffix Suffix to differentiate this user from 
others.
    * @return A new configuration instance with a different user set into it.
@@ -3299,7 +3299,7 @@ public class HBaseTestingUtility extends 
HBaseCommonTestingUtility {
     final String differentiatingSuffix)
   throws IOException {
     FileSystem currentfs = FileSystem.get(c);
-    if (!(currentfs instanceof DistributedFileSystem)) {
+    if (!(currentfs instanceof DistributedFileSystem) || 
User.isHBaseSecurityEnabled(c)) {
       return User.getCurrent();
     }
     // Else distributed filesystem.  Make a new instance per daemon.  Below

Reply via email to