HDFS-9777. Fix typos in DFSAdmin command line and documentation.(Wei-Chiu Chuang via umamahesh)

This commit is contained in:
Uma Maheswara Rao G 2016-02-08 13:47:45 -08:00
parent 193d27de0a
commit bffaa38a91
4 changed files with 6 additions and 3 deletions

View File

@ -133,7 +133,7 @@ public final class HdfsConstants {
}
}
/** Covert the given String to a RollingUpgradeAction. */
/** Convert the given String to a RollingUpgradeAction. */
public static RollingUpgradeAction fromString(String s) {
return MAP.get(StringUtils.toUpperCase(s));
}

View File

@ -1887,6 +1887,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9503. Use generic option -fs for NNThroughputBenchmark instead of
-namenode. (Mingliang Liu via shv)
HDFS-9777. Fix typos in DFSAdmin command line and documentation.
(Wei-Chiu Chuang via umamahesh)
OPTIMIZATIONS
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

View File

@ -3308,7 +3308,7 @@ order written.</p>]]>
deprecated="not deprecated">
<param name="s" type="java.lang.String"/>
<doc>
<![CDATA[Covert the given String to a RollingUpgradeAction.]]>
<![CDATA[Convert the given String to a RollingUpgradeAction.]]>
</doc>
</method>
</class>

View File

@ -372,7 +372,7 @@ public class DFSAdmin extends FsShell {
final RollingUpgradeAction action = RollingUpgradeAction.fromString(
argv.length >= 2? argv[1]: "");
if (action == null) {
throw new IllegalArgumentException("Failed to covert \"" + argv[1]
throw new IllegalArgumentException("Failed to convert \"" + argv[1]
+"\" to " + RollingUpgradeAction.class.getSimpleName());
}