Browse Source

HADOOP-12755. Fix typo in defaultFS warning message.

Andrew Wang 9 years ago
parent
commit
8171874dd1

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

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

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsCommand.java

@@ -112,7 +112,7 @@ abstract public class FsCommand extends Command {
           defaultFs == null || defaultFs.equals(FS_DEFAULT_NAME_DEFAULT);
           defaultFs == null || defaultFs.equals(FS_DEFAULT_NAME_DEFAULT);
       if (missingDefaultFs) {
       if (missingDefaultFs) {
         err.printf(
         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());
             getCommandName());
       }
       }
     }
     }

+ 1 - 1
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestLs.java

@@ -1062,7 +1062,7 @@ public class TestLs {
     ls.err = err;
     ls.err = err;
     ls.run("file:///.");
     ls.run("file:///.");
     assertEquals(shouldDisplay, buf.toString().contains(
     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
   @Test