[
https://issues.apache.org/jira/browse/HDFS-16120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377051#comment-17377051
]
xuefeng zhao commented on HDFS-16120:
-------------------------------------
when debug into
*org.apache.commons.cli.Parser#parse(org.apache.commons.cli.Options,
java.lang.String[], java.util.Properties, boolean)*
,this method does not change commdandline's options field
> NNThroughputBenchmark does not filter generic hadoop args
> ------------------------------------------------------------
>
> Key: HDFS-16120
> URL: https://issues.apache.org/jira/browse/HDFS-16120
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: benchmarks
> Affects Versions: 2.7.5
> Reporter: xuefeng zhao
> Priority: Minor
>
> I notice 'Convert NNThroughputBenchmark to a Tool to allow generic
> options'(https://issues.apache.org/jira/browse/HDFS-5068) allow generic
> options in NNThroughputBenchmark
> But when I run NNThroughputBenchmark with generic options ,it not works.
> Always print Usage: NNThroughputBenchmark
> I check the source code of NNThroughputBenchmark, find that, it does not
> support genericOptions now.
> main->runBenchmark->ToolRunner.run->run
> {code:java}
> GenericOptionsParser parser = new GenericOptionsParser(conf, args);
> //set the configuration back, so that Tool can configure itself
> tool.setConf(conf);
> //get the args w/o generic hadoop args
> String[] toolArgs = parser.getRemainingArgs();
> return tool.run(toolArgs);
> {code}
> Although `get the args w/o generic hadoop args`, parse still has generic
> hadoop args.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]