hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r824566 - in /hadoop/hdfs/trunk: CHANGES.txt src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
Date Tue, 13 Oct 2009 02:01:06 GMT
Author: shv
Date: Tue Oct 13 02:01:05 2009
New Revision: 824566

URL: http://svn.apache.org/viewvc?rev=824566&view=rev
Log:
HDFS-688. Add configuration resources to DFSAdmin. Contributed by Konstantin Shvachko.

Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=824566&r1=824565&r2=824566&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Tue Oct 13 02:01:05 2009
@@ -271,6 +271,8 @@
     HDFS-518. Create new tests for Append's hflush. (Konstantin Boudnik
     via szetszwo)
 
+    HDFS-688. Add configuration resources to DFSAdmin. (shv)
+
   BUG FIXES
 
     HDFS-76. Better error message to users when commands fail because of 

Modified: hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java?rev=824566&r1=824565&r2=824566&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java (original)
+++ hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java Tue Oct 13 02:01:05
2009
@@ -54,6 +54,11 @@
  */
 public class DFSAdmin extends FsShell {
 
+  static{
+    Configuration.addDefaultResource("hdfs-default.xml");
+    Configuration.addDefaultResource("hdfs-site.xml");
+  }
+
   /**
    * An abstract class for the execution of a file system command
    */



Mime
View raw message