tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kam...@apache.org
Subject git commit: TEZ-1241 Consistent getter for staging dir (kamrul)
Date Wed, 09 Jul 2014 21:59:10 GMT
Repository: incubator-tez
Updated Branches:
  refs/heads/master 392727e17 -> cd474e0e3


TEZ-1241 Consistent getter for staging dir (kamrul)


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

Branch: refs/heads/master
Commit: cd474e0e36eaa17befab7aa0fcdfa0813d9e6b49
Parents: 392727e
Author: Mohammad Kamrul Islam <kamrul@apache.org>
Authored: Wed Jul 9 14:55:57 2014 -0700
Committer: Mohammad Kamrul Islam <kamrul@apache.org>
Committed: Wed Jul 9 14:55:57 2014 -0700

----------------------------------------------------------------------
 tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java | 4 ----
 tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java  | 4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/cd474e0e/tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java b/tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java
index 3b4f4bf..597a95d 100644
--- a/tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java
+++ b/tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java
@@ -72,10 +72,6 @@ class AMConfiguration {
     this.yarnConfig = yarnConf;
   }
 
-  Path getStagingDir() {
-    return TezCommonUtils.getTezBaseStagingPath(tezConf);
-  }
-
   String getQueueName() {
     return this.tezConf.get(TezConfiguration.TEZ_QUEUE_NAME);
   }

http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/cd474e0e/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java b/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java
index a0f13d3..4711589 100644
--- a/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java
+++ b/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java
@@ -326,9 +326,9 @@ public class TezClientUtils {
           throws IOException, YarnException{
 
     Preconditions.checkNotNull(sessionCreds);
-    
+
     FileSystem fs = TezClientUtils.ensureStagingDirExists(conf,
-        amConfig.getStagingDir());
+        TezCommonUtils.getTezBaseStagingPath(conf));
     String strAppId = appId.toString();
     Path tezSysStagingPath = TezCommonUtils.createTezSystemStagingPath(conf, strAppId);
     Path binaryConfPath = TezCommonUtils.getTezConfStagingPath(tezSysStagingPath);


Mime
View raw message