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
This commit is contained in:
Aaron Myers 2012-10-06 00:13:28 +00:00
parent d35169d9ba
commit 353958dccc
2 changed files with 5 additions and 2 deletions

View File

@ -259,6 +259,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;
}