Repository: tez
Updated Branches:
  refs/heads/master 65265de17 -> c259daedf


TEZ-1305: Log job tracking url (rohini)


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

Branch: refs/heads/master
Commit: c259daedfde15ab7c38e3f647f76909ff4236015
Parents: 65265de
Author: Rohini Palaniswamy <[email protected]>
Authored: Tue Jul 29 09:07:24 2014 -0700
Committer: Rohini Palaniswamy <[email protected]>
Committed: Tue Jul 29 09:07:24 2014 -0700

----------------------------------------------------------------------
 tez-api/src/main/java/org/apache/tez/client/TezClient.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/c259daed/tez-api/src/main/java/org/apache/tez/client/TezClient.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/client/TezClient.java 
b/tez-api/src/main/java/org/apache/tez/client/TezClient.java
index 1f29d61..be6cf13 100644
--- a/tez-api/src/main/java/org/apache/tez/client/TezClient.java
+++ b/tez-api/src/main/java/org/apache/tez/client/TezClient.java
@@ -284,6 +284,8 @@ public class TezClient {
           appContext.setMaxAppAttempts(1);
         }  
         frameworkClient.submitApplication(appContext);
+        ApplicationReport appReport = 
frameworkClient.getApplicationReport(sessionAppId);
+        LOG.info("The url to track the Tez Session: " + 
appReport.getTrackingUrl());
         sessionStarted = true;
       } catch (YarnException e) {
         throw new TezException(e);
@@ -669,6 +671,8 @@ public class TezClient {
           + ", dagName=" + dag.getName());
       
       frameworkClient.submitApplication(appContext);
+      ApplicationReport appReport = 
frameworkClient.getApplicationReport(appId);
+      LOG.info("The url to track the Tez AM: " + appReport.getTrackingUrl());
       lastSubmittedAppId = appId;
     } catch (YarnException e) {
       throw new TezException(e);

Reply via email to