[ 
https://issues.apache.org/jira/browse/HDFS-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13732809#comment-13732809
 ] 

Konstantin Shvachko commented on HDFS-5068:
-------------------------------------------

I usually run it using hadoop command:
{code}
hadoop org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark
{code}
Then you will see available operations, options.
You can about background and motivation in the introductory Jira HADOOP-2149. 
The list of operations was subsequently extended, most of the documentation is 
just the JavaDoc for the class and related operations.
To test this change you can add some generic options to the hadoop command. 
E.g. if I want to point it to a specific config file I'd run:
{code}
hadoop org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark -conf 
/home/shv/conf/my-hdfs-site.xml -op create -threads 200 -files 500000 
-filesPerDir 100
{code}
LMK if it works for you.
                
> Convert NNThroughputBenchmark to a Tool to allow generic options.
> -----------------------------------------------------------------
>
>                 Key: HDFS-5068
>                 URL: https://issues.apache.org/jira/browse/HDFS-5068
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: benchmarks
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>         Attachments: NNThBenchTool.patch
>
>
> Currently NNThroughputBenchmark does not recognize generic options like 
> -conf, etc. A simple way to enable such functionality is to make it implement 
> Tool interface.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to