HDFS-14152. RBF: Fix a typo in RouterAdmin usage. Contributed by Ayush Saxena.
This commit is contained in:
parent
94a8dec168
commit
01b4126b4e
@ -109,7 +109,7 @@ private String getUsage(String cmd) {
|
|||||||
{"-add", "-update", "-rm", "-ls", "-setQuota", "-clrQuota",
|
{"-add", "-update", "-rm", "-ls", "-setQuota", "-clrQuota",
|
||||||
"-safemode", "-nameservice", "-getDisabledNameservices"};
|
"-safemode", "-nameservice", "-getDisabledNameservices"};
|
||||||
StringBuilder usage = new StringBuilder();
|
StringBuilder usage = new StringBuilder();
|
||||||
usage.append("Usage: hdfs routeradmin :\n");
|
usage.append("Usage: hdfs dfsrouteradmin :\n");
|
||||||
for (int i = 0; i < commands.length; i++) {
|
for (int i = 0; i < commands.length; i++) {
|
||||||
usage.append(getUsage(commands[i]));
|
usage.append(getUsage(commands[i]));
|
||||||
if (i + 1 < commands.length) {
|
if (i + 1 < commands.length) {
|
||||||
|
@ -549,7 +549,7 @@ public void testInvalidArgumentMessage() throws Exception {
|
|||||||
|
|
||||||
argv = new String[] {"-Random"};
|
argv = new String[] {"-Random"};
|
||||||
assertEquals(-1, ToolRunner.run(admin, argv));
|
assertEquals(-1, ToolRunner.run(admin, argv));
|
||||||
String expected = "Usage: hdfs routeradmin :\n"
|
String expected = "Usage: hdfs dfsrouteradmin :\n"
|
||||||
+ "\t[-add <source> <nameservice1, nameservice2, ...> <destination> "
|
+ "\t[-add <source> <nameservice1, nameservice2, ...> <destination> "
|
||||||
+ "[-readonly] [-order HASH|LOCAL|RANDOM|HASH_ALL] "
|
+ "[-readonly] [-order HASH|LOCAL|RANDOM|HASH_ALL] "
|
||||||
+ "-owner <owner> -group <group> -mode <mode>]\n"
|
+ "-owner <owner> -group <group> -mode <mode>]\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user