ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] ranger git commit: Revert "Switch to use 127.0.0.1 explicitly to see if it works"
Date Mon, 10 Jul 2017 14:01:50 GMT
Repository: ranger
Updated Branches:
  refs/heads/master e7c13864f -> d592d3fa2


Revert "Switch to use 127.0.0.1 explicitly to see if it works"

This reverts commit e7c13864fc37f98b0e1fc4f9add2a681c43197f0.


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

Branch: refs/heads/master
Commit: d2e1d099ebbd16af54144391fbe3803f1f204b79
Parents: e7c1386
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jul 10 15:01:32 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 10 15:01:32 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/ranger/blob/d2e1d099/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 eedc697..096c000 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 = "127.0.0.1"; //InetAddress.getLocalHost().getHostAddress();
+        String address = 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,7 +168,8 @@ public class KafkaRangerAuthorizerGSSTest {
         kerbyServer.init();
 
         // Create principals
-        String zookeeper = "zookeeper/127.0.0.1@kafka.apache.org";
+        String address = InetAddress.getLocalHost().getHostAddress();
+        String zookeeper = "zookeeper/" + address + "@kafka.apache.org";
         String kafka = "kafka/localhost@kafka.apache.org";
         String client = "client@kafka.apache.org";
 


Mime
View raw message