浏览代码

HADOOP-3516. Ensure the JobClient in HadoopArchives is initialized
with a configuration. Contributed by Subramaniam Krishnan.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@665888 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 17 年之前
父节点
当前提交
878f10e811
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/tools/org/apache/hadoop/tools/HadoopArchives.java

+ 3 - 0
CHANGES.txt

@@ -553,6 +553,9 @@ Release 0.18.0 - Unreleased
     HADOOP-3511. Fixes namenode image to not set the root's quota to an
     HADOOP-3511. Fixes namenode image to not set the root's quota to an
     invalid value when the quota was not saved in the image. (hairong)
     invalid value when the quota was not saved in the image. (hairong)
 
 
+    HADOOP-3516. Ensure the JobClient in HadoopArchives is initialized
+    with a configuration. (Subramaniam Krishnan via omalley)
+
 Release 0.17.0 - 2008-05-18
 Release 0.17.0 - 2008-05-18
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
src/tools/org/apache/hadoop/tools/HadoopArchives.java

@@ -312,7 +312,7 @@ public class HadoopArchives implements Tool {
     FileOutputFormat.setOutputPath(conf, outputPath);
     FileOutputFormat.setOutputPath(conf, outputPath);
     conf.set(DST_DIR_LABEL, outputPath.toString());
     conf.set(DST_DIR_LABEL, outputPath.toString());
     final String randomId = DistCp.getRandomId();
     final String randomId = DistCp.getRandomId();
-    Path jobDirectory = new Path(new JobClient().getSystemDir(),
+    Path jobDirectory = new Path(new JobClient(conf).getSystemDir(),
                           NAME + "_" + randomId);
                           NAME + "_" + randomId);
     conf.set(JOB_DIR_LABEL, jobDirectory.toString());
     conf.set(JOB_DIR_LABEL, jobDirectory.toString());
     //get a tmp directory for input splits
     //get a tmp directory for input splits