HDFS-14152. RBF: Fix a typo in RouterAdmin usage. Contributed by Ayush Saxena.

This commit is contained in:
Takanobu Asanuma 2018-12-16 00:40:51 +09:00 committed by Brahma Reddy Battula
parent 94a8dec168
commit 01b4126b4e
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ private String getUsage(String cmd) {
{"-add", "-update", "-rm", "-ls", "-setQuota", "-clrQuota",
"-safemode", "-nameservice", "-getDisabledNameservices"};
StringBuilder usage = new StringBuilder();
usage.append("Usage: hdfs routeradmin :\n");
usage.append("Usage: hdfs dfsrouteradmin :\n");
for (int i = 0; i < commands.length; i++) {
usage.append(getUsage(commands[i]));
if (i + 1 < commands.length) {

View File

@ -549,7 +549,7 @@ public void testInvalidArgumentMessage() throws Exception {
argv = new String[] {"-Random"};
assertEquals(-1, ToolRunner.run(admin, argv));
String expected = "Usage: hdfs routeradmin :\n"
String expected = "Usage: hdfs dfsrouteradmin :\n"
+ "\t[-add <source> <nameservice1, nameservice2, ...> <destination> "
+ "[-readonly] [-order HASH|LOCAL|RANDOM|HASH_ALL] "
+ "-owner <owner> -group <group> -mode <mode>]\n"