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/branches/branch-2@1394866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2012-10-06 00:16:08 +00:00
parent 6827ab09c3
commit 9a69c2d501
2 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,9 @@ Release 2.0.3-alpha - Unreleased
HDFS-3813. Log error message if security and WebHDFS are enabled but
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
BUG FIXES

View File

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