HADOOP-12755. Fix typo in defaultFS warning message.

(cherry picked from commit 8171874dd1)
This commit is contained in:
Andrew Wang 2016-02-02 11:56:37 -08:00
parent 4ee0977687
commit b4ad58796b
3 changed files with 4 additions and 2 deletions

View File

@ -440,6 +440,8 @@ Release 2.8.0 - UNRELEASED
HADOOP-12696. Add tests for S3Filesystem Contract (Matt Paduano via raviprak)
HADOOP-12755. Fix typo in defaultFS warning message. (wang)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -112,7 +112,7 @@ abstract public class FsCommand extends Command {
defaultFs == null || defaultFs.equals(FS_DEFAULT_NAME_DEFAULT);
if (missingDefaultFs) {
err.printf(
"Warning: fs.defaultFs is not set when running \"%s\" command.%n",
"Warning: fs.defaultFS is not set when running \"%s\" command.%n",
getCommandName());
}
}

View File

@ -1062,7 +1062,7 @@ public class TestLs {
ls.err = err;
ls.run("file:///.");
assertEquals(shouldDisplay, buf.toString().contains(
"Warning: fs.defaultFs is not set when running \"ls\" command."));
"Warning: fs.defaultFS is not set when running \"ls\" command."));
}
@Test