소스 검색

HADOOP-3545. Fixes a overflow problem in archives. Contributed by Mahadev Konar.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@668398 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 17 년 전
부모
커밋
1c58d829c2
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      CHANGES.txt
  2. 3 2
      src/tools/org/apache/hadoop/tools/HadoopArchives.java

+ 3 - 0
CHANGES.txt

@@ -601,6 +601,9 @@ Release 0.18.0 - Unreleased
     HADOOP-3560. Fixes a problem to do with split creation in archives.
     HADOOP-3560. Fixes a problem to do with split creation in archives.
     (Mahadev Konar via ddas)
     (Mahadev Konar via ddas)
 
 
+    HADOOP-3545. Fixes a overflow problem in archives.
+    (Mahadev Konar via ddas)
+
 Release 0.17.0 - 2008-05-18
 Release 0.17.0 - 2008-05-18
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 3 - 2
src/tools/org/apache/hadoop/tools/HadoopArchives.java

@@ -59,6 +59,7 @@ import org.apache.hadoop.mapred.lib.NullOutputFormat;
 import org.apache.hadoop.util.Tool;
 import org.apache.hadoop.util.Tool;
 import org.apache.hadoop.util.ToolRunner;
 import org.apache.hadoop.util.ToolRunner;
 
 
+
 /**
 /**
  * a archive creation utility.
  * a archive creation utility.
  * This class provides methods that can be used 
  * This class provides methods that can be used 
@@ -78,7 +79,7 @@ public class HadoopArchives implements Tool {
   static final String DST_HAR_LABEL = NAME + ".archive.name";
   static final String DST_HAR_LABEL = NAME + ".archive.name";
   // size of each part file
   // size of each part file
   // its fixed for now.
   // its fixed for now.
-  static final long partSize = 2 * 1024 * 1024 * 1024;
+  static final long partSize = 2 * 1024 * 1024 * 1024l;
 
 
   private static final String usage = "archive"
   private static final String usage = "archive"
   + " -archiveName NAME <src>* <dest>" +
   + " -archiveName NAME <src>* <dest>" +
@@ -91,7 +92,7 @@ public class HadoopArchives implements Tool {
     if (conf instanceof JobConf) {
     if (conf instanceof JobConf) {
       this.conf = (JobConf) conf;
       this.conf = (JobConf) conf;
     } else {
     } else {
-      this.conf = new JobConf(conf);
+      this.conf = new JobConf(conf, HadoopArchives.class);
     }
     }
   }
   }