TEZ-171: MapUtils should use the temp-dir passed in rather than env:PWD
Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/5d0b8adf Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/5d0b8adf Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/5d0b8adf Branch: refs/heads/master Commit: 5d0b8adfb9390b67c53e9bbad7a9f0961300d8db Parents: 6d5625f Author: Mike Liddell <[email protected]> Authored: Thu May 30 16:45:30 2013 -0700 Committer: Mike Liddell <[email protected]> Committed: Thu May 30 16:45:30 2013 -0700 ---------------------------------------------------------------------- .../apache/tez/mapreduce/processor/MapUtils.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/5d0b8adf/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/MapUtils.java ---------------------------------------------------------------------- diff --git a/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/MapUtils.java b/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/MapUtils.java index 48a1113..138a8e0 100644 --- a/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/MapUtils.java +++ b/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/processor/MapUtils.java @@ -66,8 +66,7 @@ public class MapUtils { localSysDirs[0] = localDir; conf.setStrings(TezJobConfig.LOCAL_DIRS, localSysDirs); - conf.set(TezJobConfig.TASK_LOCAL_RESOURCE_DIR, - System.getenv(Environment.PWD.name())); + conf.set(TezJobConfig.TASK_LOCAL_RESOURCE_DIR, localDir); LOG.info(TezJobConfig.LOCAL_DIRS + " for child: " + conf.get(TezJobConfig.LOCAL_DIRS));
