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:
parent
6827ab09c3
commit
9a69c2d501
|
@ -34,6 +34,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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue