You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by gu...@apache.org on 2014/11/07 08:50:44 UTC

svn commit: r1637305 - /hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java

Author: gunther
Date: Fri Nov  7 07:50:44 2014
New Revision: 1637305

URL: http://svn.apache.org/r1637305
Log:
HIVE-8759: HiveServer2 dynamic service discovery should add hostname instead of ipaddress to ZooKeeper (Vaibhav Gumashta, reviewed by Thejas M Nair)

Modified:
    hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java

Modified: hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java?rev=1637305&r1=1637304&r2=1637305&view=diff
==============================================================================
--- hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java (original)
+++ hive/branches/branch-0.14/service/src/java/org/apache/hive/service/server/HiveServer2.java Fri Nov  7 07:50:44 2014
@@ -252,7 +252,7 @@ public class HiveServer2 extends Composi
     if ((thriftCLIService == null) || (thriftCLIService.getServerAddress() == null)) {
       throw new Exception("Unable to get the server address; it hasn't been initialized yet.");
     }
-    return thriftCLIService.getServerAddress().getHostAddress() + ":"
+    return thriftCLIService.getServerAddress().getHostName() + ":"
         + thriftCLIService.getPortNumber();
   }