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

(cherry picked from commit bffaa38a91)
This commit is contained in:
Uma Maheswara Rao G 2016-02-08 13:47:45 -08:00
parent 13bb016ba9
commit 3399119e72
4 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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