<?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: ClassNotFoundException: TestDFSIO in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214384#M84518</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/93329/shiuhrong.html" nodeid="93329"&gt;@Ronnie 10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How are you running it ?&lt;/P&gt;&lt;P&gt;Can you share the exact command?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# su - hdfs
# hadoop jar /usr/hdp/3.0.0.0-1634/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-tests.jar TestDFSIO -write -nrFiles 10 -fileSize 100000
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 10:24:37 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-10-23T10:24:37Z</dc:date>
    <item>
      <title>ClassNotFoundException: TestDFSIO</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214383#M84517</link>
      <description>&lt;P&gt;Hi, I have been trying to run TestDFSIO, but it always give me ClassNotFoundException: TestDFSIO, I tried to run using /usr/hdp/current/hadoop-hdfs-client/hadoop-hdfs-client-test.jar, /usr/hdp/current/hadoop-hdfs-client/hadoop-hdfs-native-client-test.jar, /usr/hdp/current/hadoop-hdfs-client/hadoop-hdfs-tests.jar, /usr/hdp/current/hadoop-client/hadoop-common-tests.jar, /usr/hdp/3.0.0.0-1634/hadoop/hadoop-common-tests.jar, /usr/hdp/3.0.0.0-1634/hadoop-hdfs/hadoop-hdfs-tests.jar, all of them gave me same output, anything I did wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:49:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214383#M84517</guid>
      <dc:creator>yongie</dc:creator>
      <dc:date>2022-09-16T13:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException: TestDFSIO</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214384#M84518</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/93329/shiuhrong.html" nodeid="93329"&gt;@Ronnie 10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How are you running it ?&lt;/P&gt;&lt;P&gt;Can you share the exact command?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# su - hdfs
# hadoop jar /usr/hdp/3.0.0.0-1634/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-tests.jar TestDFSIO -write -nrFiles 10 -fileSize 100000
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:24:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214384#M84518</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-10-23T10:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException: TestDFSIO</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214385#M84519</link>
      <description>&lt;P&gt;I try run again with &lt;/P&gt;&lt;PRE&gt;sudo -u hdfs hadoop jar hadoop-hdfs-client-tests.jar TestDFSIO -write -nrFiles 10 -fileSize 100000&lt;/PRE&gt;&lt;P&gt;it still showing &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Exception in thread "main" java.lang.ClassNotFoundException: TestDFSIO&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:58:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214385#M84519</guid>
      <dc:creator>yongie</dc:creator>
      <dc:date>2018-10-23T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException: TestDFSIO</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214386#M84520</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/93329/shiuhrong.html" nodeid="93329"&gt;@Ronnie 10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your JAR name is different. &lt;STRONG&gt;"hadoop-hdfs-client-tests.jar" (wrong jar)&lt;/STRONG&gt; and I am using &lt;STRONG&gt;"hadoop-mapreduce-client-jobclient-tests.jar" (correct JAR)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Your command:&lt;/P&gt;&lt;PRE&gt;# sudo -u hdfs hadoop jar hadoop-hdfs-client-tests.jar TestDFSIO -write -nrFiles 10 -fileSize 100000&lt;/PRE&gt;&lt;P&gt;My Command:&lt;/P&gt;&lt;PRE&gt;# cd /usr/hdp/3.0.0.0-1634/hadoop-mapreduce
# sudo -u hdfs hadoop jar hadoop-mapreduce-client-jobclient-tests.jar  TestDFSIO -write -nrFiles 10 -fileSize 100000&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can chekc if your JAR contains that class or not ass following:&lt;/P&gt;&lt;PRE&gt;# /usr/jdk64/jdk1.8.0_112/bin/jar -tvf /usr/hdp/3.0.0.0-1634/hadoop-hdfs/hadoop-hdfs-client-tests.jar | grep TestDFSIO

Not Found&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But if you use the correct JAR then you can see it.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# /usr/jdk64/jdk1.8.0_112/bin/jar -tvf /usr/hdp/3.0.0.0-1634/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-tests.jar | grep TestDFSIO
  2323 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$ByteMultiple.class
  2974 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$ReadMapper.class
  4215 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$RandomReadMapper.class
  3148 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$TruncateMapper.class
  3233 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$WriteMapper.class
  4014 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$IOStatMapper.class
  1086 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$1.class
 24732 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO.class
  3078 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$AppendMapper.class
  1895 Thu Jul 12 20:36:52 UTC 2018 org/apache/hadoop/fs/TestDFSIO$TestType.class&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 11:23:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214386#M84520</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-10-23T11:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException: TestDFSIO</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214387#M84521</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I have found the jar file to run the TestDFSio!&lt;/P&gt;&lt;P&gt;It is inside&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/hadoop-mapreduce-client&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:43:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ClassNotFoundException-TestDFSIO/m-p/214387#M84521</guid>
      <dc:creator>yongie</dc:creator>
      <dc:date>2018-10-24T09:43:16Z</dc:date>
    </item>
  </channel>
</rss>

