tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject tez git commit: TEZ-1924. Tez AM does not register with AM with full FQDN causing jobs to fail in some environments. (Ivan Mitic via hitesh)
Date Wed, 07 Jan 2015 22:01:39 GMT
Repository: tez
Updated Branches:
  refs/heads/master b9c834a28 -> f4be19375


TEZ-1924. Tez AM does not register with AM with full FQDN causing jobs to fail in some environments.
(Ivan Mitic via hitesh)


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

Branch: refs/heads/master
Commit: f4be193755b44ae1c2056d1a1650c6ffff1f777c
Parents: b9c834a
Author: Hitesh Shah <hitesh@apache.org>
Authored: Wed Jan 7 14:00:44 2015 -0800
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Wed Jan 7 14:00:44 2015 -0800

----------------------------------------------------------------------
 CHANGES.txt                                                     | 2 ++
 .../java/org/apache/tez/dag/api/client/DAGClientServer.java     | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/f4be1937/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index a91e7c6..b6b15ce 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -106,6 +106,8 @@ TEZ-UI CHANGES (TEZ-8):
 Release 0.5.4: Unreleased
 
 ALL CHANGES:
+  TEZ-1924. Tez AM does not register with AM with full FQDN causing jobs
+  to fail in some environments.
   TEZ-1878. Task-specific log level override not working in certain conditions.
   TEZ-1775. Allow setting log level per logger.
   TEZ-1851. FileSystem counters do not differentiate between different FileSystems.

http://git-wip-us.apache.org/repos/asf/tez/blob/f4be1937/tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java b/tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java
index bd2a781..7671ddf 100644
--- a/tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java
+++ b/tez-dag/src/main/java/org/apache/tez/dag/api/client/DAGClientServer.java
@@ -84,7 +84,10 @@ public class DAGClientServer extends AbstractService {
       }
 
       server.start();
-      bindAddress = NetUtils.getConnectAddress(server);
+      InetSocketAddress serverBindAddress = NetUtils.getConnectAddress(server);
+      this.bindAddress = NetUtils.createSocketAddrForHost(
+          serverBindAddress.getAddress().getCanonicalHostName(),
+          serverBindAddress.getPort());
       LOG.info("Instantiated DAGClientRPCServer at " + bindAddress);
     } catch (Exception e) {
       LOG.error("Failed to start DAGClientServer: ", e);


Mime
View raw message