hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang...@apache.org
Subject hbase git commit: HBASE-13280 TestSecureRPC failed
Date Thu, 19 Mar 2015 13:47:08 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 6b411b5d0 -> 9e92e3362


HBASE-13280 TestSecureRPC failed


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

Branch: refs/heads/branch-1
Commit: 9e92e33629127169dfe869c5beedfc24d5953f72
Parents: 6b411b5
Author: zhangduo <zhangduo@wandoujia.com>
Authored: Thu Mar 19 21:46:15 2015 +0800
Committer: zhangduo <zhangduo@wandoujia.com>
Committed: Thu Mar 19 21:46:15 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/security/TestSecureRPC.java | 8 +-------
 .../hbase/security/TestUsersOperationsWithSecureHadoop.java  | 4 +---
 .../hbase/security/token/TestGenerateDelegationToken.java    | 4 +---
 3 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9e92e336/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureRPC.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureRPC.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureRPC.java
index 02a205a..b4dd62b 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureRPC.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureRPC.java
@@ -26,7 +26,6 @@ import static org.junit.Assert.assertSame;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.InetAddress;
 import java.net.InetSocketAddress;
 import java.util.ArrayList;
 import java.util.List;
@@ -37,10 +36,6 @@ import org.apache.hadoop.fs.CommonConfigurationKeys;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.ServerName;
-import org.apache.hadoop.hbase.testclassification.SmallTests;
-import org.apache.hadoop.hbase.ipc.FifoRpcScheduler;
-import org.apache.hadoop.hbase.ipc.RpcClient;
-import org.apache.hadoop.hbase.ipc.RpcClientFactory;
 import org.apache.hadoop.hbase.ipc.AsyncRpcClient;
 import org.apache.hadoop.hbase.ipc.FifoRpcScheduler;
 import org.apache.hadoop.hbase.ipc.RpcClient;
@@ -75,7 +70,7 @@ public class TestSecureRPC {
 
   private static MiniKdc KDC;
 
-  private static String HOST;
+  private static String HOST = "localhost";
 
   private static String PRINCIPAL;
 
@@ -85,7 +80,6 @@ public class TestSecureRPC {
     conf.put(MiniKdc.DEBUG, true);
     KDC = new MiniKdc(conf, new File(TEST_UTIL.getDataTestDir("kdc").toUri().getPath()));
     KDC.start();
-    HOST = InetAddress.getLocalHost().getHostName();
     PRINCIPAL = "hbase/" + HOST;
     KDC.createPrincipal(KEYTAB_FILE, PRINCIPAL);
     HBaseKerberosUtils.setKeytabFileForTesting(KEYTAB_FILE.getAbsolutePath());

http://git-wip-us.apache.org/repos/asf/hbase/blob/9e92e336/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
index 4d6fa21..b664564 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java
@@ -28,7 +28,6 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.InetAddress;
 import java.util.Properties;
 
 import org.apache.hadoop.conf.Configuration;
@@ -50,7 +49,7 @@ public class TestUsersOperationsWithSecureHadoop {
 
   private static MiniKdc KDC;
 
-  private static String HOST;
+  private static String HOST = "localhost";
 
   private static String PRINCIPAL;
 
@@ -60,7 +59,6 @@ public class TestUsersOperationsWithSecureHadoop {
     conf.put(MiniKdc.DEBUG, true);
     KDC = new MiniKdc(conf, new File(TEST_UTIL.getDataTestDir("kdc").toUri().getPath()));
     KDC.start();
-    HOST = InetAddress.getLocalHost().getHostName();
     PRINCIPAL = "hbase/" + HOST;
     KDC.createPrincipal(KEYTAB_FILE, PRINCIPAL);
     HBaseKerberosUtils.setKeytabFileForTesting(KEYTAB_FILE.getAbsolutePath());

http://git-wip-us.apache.org/repos/asf/hbase/blob/9e92e336/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 5ab1079..5768fa9 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
@@ -22,7 +22,6 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.InetAddress;
 import java.util.Properties;
 
 import org.apache.hadoop.hbase.HBaseTestingUtility;
@@ -69,7 +68,7 @@ public class TestGenerateDelegationToken {
       .getPath());
   private static MiniKdc KDC;
 
-  private static String HOST;
+  private static String HOST = "localhost";
 
   private static String USERNAME = System.getProperty("user.name");
 
@@ -81,7 +80,6 @@ public class TestGenerateDelegationToken {
     conf.put(MiniKdc.DEBUG, true);
     KDC = new MiniKdc(conf, new File(TEST_UTIL.getDataTestDir("kdc").toUri().getPath()));
     KDC.start();
-    HOST = InetAddress.getLocalHost().getHostName();
     PRINCIPAL = USERNAME + "/" + HOST;
     KDC.createPrincipal(KEYTAB_FILE, PRINCIPAL);
     TEST_UTIL.getConfiguration().setBoolean("ipc.client.fallback-to-simple-auth-allowed",
true);


Mime
View raw message