tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prak...@apache.org
Subject tez git commit: TEZ-2600. When used with HDFS federation(viewfs) , tez will throw a error (Xiaowei Wang via pramachandran)
Date Wed, 15 Jul 2015 22:18:58 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.6 4e669df16 -> cacae67a9


TEZ-2600. When used with HDFS federation(viewfs) ,tez will throw a error (Xiaowei Wang via
pramachandran)

(cherry picked from commit 8c0725775983b34acff3a071a90700de4d014638)


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

Branch: refs/heads/branch-0.6
Commit: cacae67a910a4957d982981e72a0d71a6f57dc56
Parents: 4e669df
Author: Prakash Ramachandran <pramachandran@hortonworks.com>
Authored: Wed Jul 15 15:14:32 2015 -0700
Committer: Prakash Ramachandran <pramachandran@hortonworks.com>
Committed: Wed Jul 15 15:18:44 2015 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                  | 1 +
 .../src/main/java/org/apache/tez/client/TezClientUtils.java  | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/cacae67a/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index a613d06..016de9c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,7 @@ Release 0.6.2: Unreleased
 INCOMPATIBLE CHANGES
 
 ALL CHANGES:
+  TEZ-2600. When used with HDFS federation(viewfs) ,tez will throw a error
   TEZ-2579. Incorrect comparison of TaskAttemptId
   TEZ-2549. Reduce Counter Load on the Timeline Server
   TEZ-2548. TezClient submitDAG can hang if the AM is in the process of shutting down.

http://git-wip-us.apache.org/repos/asf/tez/blob/cacae67a/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 91ef389..9d3e96c 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
@@ -128,11 +128,11 @@ public class TezClientUtils {
     Path p = new Path(uri);
     FileSystem fs = p.getFileSystem(conf);
     p = fs.resolvePath(p);
-
-    if (fs.isDirectory(p)) {
-      return fs.listStatus(p);
+    FileSystem targetFS = p.getFileSystem(conf); 
+    if (targetFS.isDirectory(p)) {
+      return targetFS.listStatus(p);
     } else {
-      FileStatus fStatus = fs.getFileStatus(p);
+      FileStatus fStatus = targetFS.getFileStatus(p);
       return new FileStatus[]{fStatus};
     }
   }


Mime
View raw message