Explorar el Código

HADOOP-4896. HDFS Fsck does not load HDFS configuration. (Raghu Angadi)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@729989 13f79535-47bb-0310-9956-ffa450edef68
Raghu Angadi hace 16 años
padre
commit
17276826d3
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 2 0
      CHANGES.txt
  2. 5 0
      src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java

+ 2 - 0
CHANGES.txt

@@ -495,6 +495,8 @@ Release 0.20.0 - Unreleased
     HADOOP-4854. Read reclaim capacity interval from capacity scheduler 
     configuration. (Sreekanth Ramakrishnan via yhemanth)
 
+    HADOOP-4896. HDFS Fsck does not load HDFS configuration. (Raghu Angadi)
+
 Release 0.19.1 - Unreleased
 
   IMPROVEMENTS

+ 5 - 0
src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java

@@ -144,6 +144,11 @@ public class DFSck extends Configured implements Tool {
     return errCode;
   }
 
+  static{
+    Configuration.addDefaultResource("hdfs-default.xml");
+    Configuration.addDefaultResource("hdfs-site.xml");
+  }
+  
   public static void main(String[] args) throws Exception {
     // -files option is also used by GenericOptionsParser
     // Make sure that is not the first argument for fsck