TEZ-3978. DAGClientServer Socket exception when localhost name lookup failures (Jonat...
authorJonathan Eagles <jeagles@yahoo-inc.com>
Thu, 16 Aug 2018 18:07:36 +0000 (13:07 -0500)
committerJason Lowe <jlowe@apache.org>
Thu, 16 Aug 2018 18:07:36 +0000 (13:07 -0500)
Signed-off-by: Jason Lowe <jlowe@apache.org>
tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java

index 14de870..2040244 100644 (file)
@@ -128,7 +128,7 @@ public class DAGClientServer extends AbstractService {
       BlockingService blockingService, String portRangeConfig) throws IOException {
     RPC.setProtocolEngine(conf, pbProtocol, ProtobufRpcEngine.class);
     RPC.Server server = new RPC.Builder(conf).setProtocol(pbProtocol)
-        .setInstance(blockingService).setBindAddress(addr.getHostName())
+        .setInstance(blockingService).setBindAddress(addr.getHostString())
         .setPort(addr.getPort()).setNumHandlers(numHandlers).setVerbose(false)
         .setPortRangeConfig(portRangeConfig).setSecretManager(secretManager)
         .build();