hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13824 TestGenerateDelegationToken: Master fails to start in Windows environment (Stephen Jiang)
Date Tue, 02 Jun 2015 17:01:35 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 56166b669 -> b7c0ac7cd


HBASE-13824 TestGenerateDelegationToken: Master fails to start in Windows environment (Stephen
Jiang)


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

Branch: refs/heads/master
Commit: b7c0ac7cd7bebf78e5b6ce14179223fbb653e4c7
Parents: 56166b6
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Jun 2 10:01:23 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Jun 2 10:01:23 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/security/token/TestGenerateDelegationToken.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b7c0ac7c/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestGenerateDelegationToken.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestGenerateDelegationToken.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestGenerateDelegationToken.java
index 88db52e..e3d3c27 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestGenerateDelegationToken.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestGenerateDelegationToken.java
@@ -25,6 +25,7 @@ import java.io.IOException;
 import java.util.Properties;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.LocalHBaseCluster;
@@ -48,6 +49,7 @@ import org.apache.hadoop.hbase.security.AccessDeniedException;
 import org.apache.hadoop.hbase.security.HBaseKerberosUtils;
 import org.apache.hadoop.hbase.testclassification.MediumTests;
 import org.apache.hadoop.hbase.testclassification.SecurityTests;
+import org.apache.hadoop.hbase.util.FSUtils;
 import org.apache.hadoop.hdfs.DFSConfigKeys;
 import org.apache.hadoop.http.HttpConfig;
 import org.apache.hadoop.minikdc.MiniKdc;
@@ -122,6 +124,8 @@ public class TestGenerateDelegationToken {
     TEST_UTIL.getConfiguration().setStrings(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY,
       TokenProvider.class.getName());
     TEST_UTIL.startMiniDFSCluster(1);
+    Path rootdir = TEST_UTIL.getDataTestDirOnTestFS("TestGenerateDelegationToken");
+    FSUtils.setRootDir(TEST_UTIL.getConfiguration(), rootdir);
     CLUSTER = new LocalHBaseCluster(TEST_UTIL.getConfiguration(), 1);
     CLUSTER.startup();
   }


Mime
View raw message