|
@@ -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;
|
|
}
|
|
}
|