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 Fri, 16 Jan 2015 01:45:36 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.5 5f0ca16fe -> 64c01de37


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

(cherry picked from commit f4be193755b44ae1c2056d1a1650c6ffff1f777c)
(cherry picked from commit 635db3677213b458ed41ded6ae9f4ba78ec85d24)

Conflicts:
	CHANGES.txt


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

Branch: refs/heads/branch-0.5
Commit: 64c01de374cdb62abfa3d060a7125794b4d4c051
Parents: 5f0ca16
Author: Hitesh Shah <hitesh@apache.org>
Authored: Wed Jan 7 14:00:44 2015 -0800
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Thu Jan 15 17:44:48 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/64c01de3/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index c453812..d616235 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -5,6 +5,8 @@ Release 0.5.4: Unreleased
 
 ALL CHANGES:
   TEZ-1962. Fix a thread leak in LocalMode.
+  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/64c01de3/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