<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to run nnbench on HDP 2.3.2? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97891#M11382</link>
    <description>&lt;P&gt;Thanks! I will change my script to use the current dir so the jar location remains same across releases&lt;/P&gt;&lt;PRE&gt;yarn jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient.jar nnbench -operation create_write
&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Dec 2015 12:28:34 GMT</pubDate>
    <dc:creator>abajwa</dc:creator>
    <dc:date>2015-12-04T12:28:34Z</dc:date>
    <item>
      <title>How to run nnbench on HDP 2.3.2?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97888#M11379</link>
      <description>&lt;P&gt;In HDP 2.3.0 this command used to be able to run nnbench:&lt;/P&gt;&lt;PRE&gt;$ yarn jar /usr/hdp/2.3.0.0-2557/hadoop-hdfs/hadoop-hdfs-tests.jar nnbench –operation create_write
&lt;/PRE&gt;&lt;P&gt;In HDP 2.3.2 it seems nnbench is no longer part of hadoop-hdfs-tests.jar?&lt;/P&gt;&lt;PRE&gt;# yarn jar /usr/hdp/2.3.2.0-2950/hadoop-hdfs/hadoop-hdfs-tests.jar nnbench –operation create_write
Exception in thread "main" java.lang.ClassNotFoundException: nnbench
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:278)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:214)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)


# jar -tvf /usr/hdp/2.3.2.0-2950/hadoop-hdfs/hadoop-hdfs-tests.jar | grep bench
#&lt;/PRE&gt;&lt;P&gt;Tried running a search in /usr for jars containing nnbench class but did not get any results&lt;/P&gt;&lt;PRE&gt;find /usr -iname '*.jar' | xargs -i bash -c "jar -tvf {} | tr / . | grep  nnbench &amp;amp;&amp;amp; echo {}"&lt;/PRE&gt;&lt;P&gt;Has this class been renamed or depracated?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:25:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97888#M11379</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-04T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to run nnbench on HDP 2.3.2?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97889#M11380</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see its part of the code  &lt;A target="_blank" href="https://github.com/apache/hadoop/blob/3b85bd7c3391719624a261f061a67cc4356be477/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/apache/hadoop/search?utf8=%E2%9C%93&amp;amp;q=nnbench"&gt;search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[root@phdns01 hadoop]# yarn jar /usr/hdp/2.3.4.0-3276/hadoop-mapreduce/hadoop-mapreduce-client-jobclient.jar  nnbench –operation create_write&lt;/P&gt;&lt;P&gt;NameNode Benchmark 0.4&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench: Test Inputs: &lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:            Test Operation: none&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:                Start time: 2015-12-03 19:52:23,879&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:            Number of maps: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:         Number of reduces: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:                Block Size: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:            Bytes to write: 0&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:        Bytes per checksum: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:           Number of files: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:        Replication factor: 1&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:                  Base dir: /benchmarks/NNBench&lt;/P&gt;&lt;P&gt;15/12/03 19:50:23 INFO hdfs.NNBench:      Read file after open: false&lt;/P&gt;&lt;P&gt;Error: Unknown operation: none&lt;/P&gt;&lt;P&gt;Usage: nnbench &amp;lt;options&amp;gt;&lt;/P&gt;&lt;P&gt;Options:&lt;/P&gt;&lt;P&gt;-operation &amp;lt;Available operations are create_write open_read rename delete. This option is mandatory&amp;gt;&lt;/P&gt;&lt;P&gt; * NOTE: The open_read, rename and delete operations assume that the files they operate on, are already available. The create_write operation must be run before running the other operations.&lt;/P&gt;&lt;P&gt;-maps &amp;lt;number of maps. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-reduces &amp;lt;number of reduces. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-startTime &amp;lt;time to start, given in seconds from the epoch. Make sure this is far enough into the future, so all maps (operations) will start at the same time. default is launch time + 2 mins. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-blockSize &amp;lt;Block size in bytes. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-bytesToWrite &amp;lt;Bytes to write. default is 0. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-bytesPerChecksum &amp;lt;Bytes per checksum for the files. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-numberOfFiles &amp;lt;number of files to create. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-replicationFactorPerFile &amp;lt;Replication factor for the files. default is 1. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-baseDir &amp;lt;base DFS path. default is /becnhmarks/NNBench. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-readFileAfterOpen &amp;lt;true or false. if true, it reads the file and reports the average time to read. This is valid with the open_read operation. default is false. This is not mandatory&amp;gt;&lt;/P&gt;&lt;P&gt;-help: Display the help statement&lt;/P&gt;&lt;P&gt;[root@phdns01 hadoop]# &lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:36:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97889#M11380</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-04T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run nnbench on HDP 2.3.2?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97890#M11381</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt; &lt;/P&gt;&lt;P&gt;[hdfs@phdns01 ~]$  hadoop jar /usr/hdp/2.3.4.0-3276/hadoop-mapreduce/hadoop-mapreduce-client-jobclient.jar nnbench -operation create_write -maps 1 -reduces 1 -blockSize 1 -bytesToWrite 0 -numberOfFiles 1000  -replicationFactorPerFile 3 -readFileAfterOpen true -baseDir /benchmarks/NNBench&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;NameNode Benchmark 0.4&lt;/P&gt;&lt;P&gt;15/12/03 19:53:11 INFO hdfs.NNBench: Test Inputs: &lt;/P&gt;&lt;P&gt;15/12/03 19:53:11 INFO hdfs.NNBench:            Test Operation: create_write&lt;/P&gt;&lt;P&gt;15/12/03 19:53:11 INFO hdfs.NNBench:                Start time: 2015-12-03 19:55:11,636&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:53:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97890#M11381</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-04T11:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run nnbench on HDP 2.3.2?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97891#M11382</link>
      <description>&lt;P&gt;Thanks! I will change my script to use the current dir so the jar location remains same across releases&lt;/P&gt;&lt;PRE&gt;yarn jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient.jar nnbench -operation create_write
&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Dec 2015 12:28:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-nnbench-on-HDP-2-3-2/m-p/97891#M11382</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-04T12:28:34Z</dc:date>
    </item>
  </channel>
</rss>

