HBASE-12886 Correct tag option name in PerformanceEvaluation (Jerry He)

This commit is contained in:
tedyu 2015-01-21 12:30:51 -08:00
parent 9bdb81f0a1
commit e87a69d9c0
1 changed files with 8 additions and 2 deletions

View File

@ -1789,7 +1789,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
continue;
}
final String noOfTags = "--nooftags=";
final String noOfTags = "--numoftags=";
if (cmd.startsWith(noOfTags)) {
opts.noOfTags = Integer.parseInt(cmd.substring(noOfTags.length()));
continue;
@ -1879,6 +1879,11 @@ public class PerformanceEvaluation extends Configured implements Tool {
opts = calculateRowsAndSize(opts);
break;
}
// Not matching any option or command.
System.err.println("Error: Wrong option or command: " + cmd);
args.add(cmd);
break;
}
return opts;
}
@ -1916,10 +1921,11 @@ public class PerformanceEvaluation extends Configured implements Tool {
argv.addAll(Arrays.asList(args));
TestOptions opts = parseOpts(argv);
// args remainting, print help and exit
// args remaining, print help and exit
if (!argv.isEmpty()) {
errCode = 0;
printUsage();
return errCode;
}
// must run at least 1 client