tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject git commit: TEZ-1574. Support additional formats for the tez deployed archive. (sseth) (cherry picked from commit d1ea44d0b4f53f729fc7842b5325d0f941b6dd1c)
Date Fri, 12 Sep 2014 10:18:26 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.5 8d8972e33 -> aa8d8053e


TEZ-1574. Support additional formats for the tez deployed archive.
(sseth)
(cherry picked from commit d1ea44d0b4f53f729fc7842b5325d0f941b6dd1c)


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

Branch: refs/heads/branch-0.5
Commit: aa8d8053eaf9650b7ff60204020fa6466f857509
Parents: 8d8972e
Author: Siddharth Seth <sseth@apache.org>
Authored: Fri Sep 12 03:17:49 2014 -0700
Committer: Siddharth Seth <sseth@apache.org>
Committed: Fri Sep 12 03:18:17 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                    | 1 +
 .../src/main/java/org/apache/tez/client/TezClientUtils.java    | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/aa8d8053/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 02df464..3ff69d3 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -16,6 +16,7 @@ ALL CHANGES
   TEZ-1362. Remove DAG_COMPLETED in DAGEventType. 
   TEZ-1519. TezTaskRunner should not initialize TezConfiguration in TezChild.
   TEZ-1534. Make client side configs available to AM and tasks.
+  TEZ-1574. Support additional formats for the tez deployed archive
 
 Release 0.5.0: Unreleased
 

http://git-wip-us.apache.org/repos/asf/tez/blob/aa8d8053/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 adda0a9..3297adc 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
@@ -171,7 +171,11 @@ public class TezClientUtils {
      
       List<Path> tezJarPaths = Lists.newArrayListWithCapacity(tezJarUris.length);
 
-      if (tezJarUris.length == 1 && (tezJarUris[0].endsWith(".tar.gz") || tezJarUris[0].endsWith(".tgz")))
{
+      if (tezJarUris.length == 1 && (
+              tezJarUris[0].endsWith(".tar.gz") ||
+              tezJarUris[0].endsWith(".tgz") ||
+              tezJarUris[0].endsWith(".zip") ||
+              tezJarUris[0].endsWith(".tar"))) {
         String fileName = tezJarUris[0];
         if (fileName.endsWith(".tar.gz") || fileName.endsWith(".tgz")) {
           FileStatus fStatus = getLRFileStatus(fileName, conf, false)[0];


Mime
View raw message