浏览代码

HADOOP-965. Fix IsolationRunner so that the job's jar can be found. Contributed by Dennis Kubes.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@502726 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 年之前
父节点
当前提交
92948fedc1
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/java/org/apache/hadoop/mapred/IsolationRunner.java

+ 3 - 0
CHANGES.txt

@@ -140,6 +140,9 @@ Trunk (unreleased changes)
 43. HADOOP-862.  Add support for the S3 FileSystem to the CopyFiles
     tool.  (Michael Stack via cutting)
 
+44. HADOOP-965.  Fix IsolationRunner so that job's jar can be found.
+    (Dennis Kubes via cutting)
+
 
 Release 0.10.1 - 2007-01-10
 

+ 2 - 1
src/java/org/apache/hadoop/mapred/IsolationRunner.java

@@ -140,7 +140,8 @@ public class IsolationRunner {
     
     // setup the local and user working directories
     FileSystem local = FileSystem.getLocal(conf);
-    File workDirName = new File(jobFilename.getParent(), "work");
+    File taskDir = new File(jobFilename.getParent());
+    File workDirName = new File(taskDir.getParent(), "work");
     local.setWorkingDirectory(new Path(workDirName.toString()));
     FileSystem.get(conf).setWorkingDirectory(conf.getWorkingDirectory());