Browse Source

HDFS-3483. Better error message when hdfs fsck is run against a ViewFS config. Contributed by Stephen Fritz.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1394864 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 12 years ago
parent
commit
353958dccc

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -259,6 +259,9 @@ Release 2.0.3-alpha - Unreleased
     HDFS-3813. Log error message if security and WebHDFS are enabled but
     HDFS-3813. Log error message if security and WebHDFS are enabled but
     principal/keytab are not configured. (Stephen Chu via atm)
     principal/keytab are not configured. (Stephen Chu via atm)
 
 
+    HDFS-3483. Better error message when hdfs fsck is run against a ViewFS
+    config. (Stephen Fritz via atm)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java

@@ -82,7 +82,7 @@ public class DFSAdmin extends FsShell {
       super(fs.getConf());
       super(fs.getConf());
       if (!(fs instanceof DistributedFileSystem)) {
       if (!(fs instanceof DistributedFileSystem)) {
         throw new IllegalArgumentException("FileSystem " + fs.getUri() + 
         throw new IllegalArgumentException("FileSystem " + fs.getUri() + 
-            " is not a distributed file system");
+            " is not an HDFS file system");
       }
       }
       this.dfs = (DistributedFileSystem)fs;
       this.dfs = (DistributedFileSystem)fs;
     }
     }
@@ -286,7 +286,7 @@ public class DFSAdmin extends FsShell {
     FileSystem fs = getFS();
     FileSystem fs = getFS();
     if (!(fs instanceof DistributedFileSystem)) {
     if (!(fs instanceof DistributedFileSystem)) {
       throw new IllegalArgumentException("FileSystem " + fs.getUri() + 
       throw new IllegalArgumentException("FileSystem " + fs.getUri() + 
-      " is not a distributed file system");
+      " is not an HDFS file system");
     }
     }
     return (DistributedFileSystem)fs;
     return (DistributedFileSystem)fs;
   }
   }