ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject ranger git commit: Switch to use 127.0.0.1 explicitly to see if it works
Date Mon, 10 Jul 2017 12:46:33 GMT
Repository: ranger
Updated Branches:
  refs/heads/master b3e4fdb3a -> e7c13864f


Switch to use 127.0.0.1 explicitly to see if it works


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

Branch: refs/heads/master
Commit: e7c13864fc37f98b0e1fc4f9add2a681c43197f0
Parents: b3e4fdb
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jul 10 13:46:14 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 10 13:46:29 2017 +0100

----------------------------------------------------------------------
 .../kafka/authorizer/KafkaRangerAuthorizerGSSTest.java          | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/e7c13864/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
----------------------------------------------------------------------
diff --git a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
index 096c000..eedc697 100644
--- a/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
+++ b/plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerGSSTest.java
@@ -90,7 +90,7 @@ public class KafkaRangerAuthorizerGSSTest {
 
         configureKerby(basedir);
 
-        String address = InetAddress.getLocalHost().getHostAddress();
+        String address = "127.0.0.1"; //InetAddress.getLocalHost().getHostAddress();
 
         // JAAS Config file - We need to point to the correct keytab files
         Path path = FileSystems.getDefault().getPath(basedir, "/src/test/resources/kafka_kerberos.jaas");
@@ -168,8 +168,7 @@ public class KafkaRangerAuthorizerGSSTest {
         kerbyServer.init();
 
         // Create principals
-        String address = InetAddress.getLocalHost().getHostAddress();
-        String zookeeper = "zookeeper/" + address + "@kafka.apache.org";
+        String zookeeper = "zookeeper/127.0.0.1@kafka.apache.org";
         String kafka = "kafka/localhost@kafka.apache.org";
         String client = "client@kafka.apache.org";
 


Mime
View raw message