HDFS-9387. Fix namenodeUri parameter parsing in NNThroughputBenchmark. Contributed by Mingliang Liu.
(cherry picked from commit 2701f2d255
)
This commit is contained in:
parent
42b55ff23e
commit
5ea3f03ecc
|
@ -1453,6 +1453,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-9413. getContentSummary() on standby should throw StandbyException.
|
||||
(Brahma Reddy Battula via mingma)
|
||||
|
||||
HDFS-9387. Fix namenodeUri parameter parsing in NNThroughputBenchmark.
|
||||
(Mingliang Liu via xyao)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -382,10 +382,12 @@ public class NNThroughputBenchmark implements Tool {
|
|||
args.remove(ugrcIndex);
|
||||
}
|
||||
|
||||
try {
|
||||
namenodeUri = StringUtils.popOptionWithArgument("-namenode", args);
|
||||
} catch (IllegalArgumentException iae) {
|
||||
printUsage();
|
||||
if (args.indexOf("-namenode") >= 0) {
|
||||
try {
|
||||
namenodeUri = StringUtils.popOptionWithArgument("-namenode", args);
|
||||
} catch (IllegalArgumentException iae) {
|
||||
printUsage();
|
||||
}
|
||||
}
|
||||
|
||||
String type = args.get(1);
|
||||
|
|
Loading…
Reference in New Issue