<?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: NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6293#M956</link>
    <description>&lt;P&gt;Thank you.&amp;nbsp; Shame on me for not "finishing the job" as it were.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2014 15:37:43 GMT</pubDate>
    <dc:creator>Bogolese</dc:creator>
    <dc:date>2014-02-14T15:37:43Z</dc:date>
    <item>
      <title>NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/5483#M952</link>
      <description>&lt;P&gt;I changed an existing (and working) project from using Text to using TypeBytesWritable for the key and value of a sequence file becuase I plan to use that file to stream to Python.&amp;nbsp; This generates the most annoying:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;14/01/30 18:11:32 INFO hadoop.ImportFiles: gov.msic.hadoop.ImportFiles started.&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/typedbytes/TypedBytesWritable&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at gov.msic.hadoop.ImportFiles.main(ImportFiles.java:304)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.hadoop.util.RunJar.main(RunJar.java:208)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.typedbytes.TypedBytesWritable&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader$1.run(URLClassLoader.java:202)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(URLClassLoader.java:190)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:306)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:247)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;... 6 more&lt;BR /&gt;Import failed!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am using CM 4.6 with &lt;SPAN&gt;CDH&lt;/SPAN&gt; &lt;SPAN&gt;4.5.0-1.cdh4.5.0.p0.30.&amp;nbsp; I can see the required jar at&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/lib/hadoop-mapreduce/hadoop-streaming.jar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so I should figure this is in the classpath?&amp;nbsp; Or it there some inherent violation of a law of the universe when using TypeBytes in a sequence file?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:53:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/5483#M952</guid>
      <dc:creator>Bogolese</dc:creator>
      <dc:date>2022-09-16T08:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/5485#M953</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you use MR1, then the /usr/lib/hadoop-mapreduce will not be on your&lt;BR /&gt;classpath, but /usr/lib/hadoop-0.20-mapreduce would.&lt;BR /&gt;&lt;BR /&gt;For MR1, these set of classes reside under&lt;BR /&gt;/usr/lib/hadoop-0.20-mapreduce/contrib/streaming/*.jar, which is&lt;BR /&gt;typically not on the default classpath. Can you try the below,&lt;BR /&gt;perhaps?&lt;BR /&gt;&lt;BR /&gt;~&amp;gt; export HADOOP_CLASSPATH="/usr/lib/hadoop-0.20-mapreduce/contrib/streaming/*"&lt;BR /&gt;~&amp;gt; hadoop jar your-jar...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2014 01:43:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/5485#M953</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-01-31T01:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6205#M954</link>
      <description>&lt;P&gt;Harsh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the "bogus" workaround to get this going by including hadoop-streaming-2.0.0-cdh4.5.0.jar in the /lib directory of my job jar.&amp;nbsp; Bogus, obviously, because it is version dependent and the jar is already distributed out to the cluster.&amp;nbsp; I would prefer not to use the distributed cache for the same reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am (finally) returning to&amp;nbsp;your suggestion and have tried&amp;nbsp;it without success.&amp;nbsp; I still get the NoClassDefFoundError on org.apache.hadoop.typedbytes.TypedBytesWritable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, doesn't HADOOP_CLASSPATH only apply to the node on which the job is launched?&amp;nbsp; Or is my understanding flawed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would *prefer* to make whatever changes are necessary to the MR configuration via CM to make the streaming jar available to all MR jobs.&amp;nbsp; To that end I modified "MapReduce Client Environment Safety Valve for hadoop-env.sh" with values for HADOOP_CLASSPATH and HADOOP_TASKTRACKER_OPTS without success.&amp;nbsp; I am open to your sage advice -- preferrably setting the classpath in a "please use current version" way.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:33:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6205#M954</guid>
      <dc:creator>Bogolese</dc:creator>
      <dc:date>2014-02-13T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6275#M955</link>
      <description>&lt;P&gt;Hi Bogolese,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to&amp;nbsp;&lt;SPAN&gt;modify "MapReduce Client Environment Safety Valve for hadoop-env.sh" with values for HADOOP_CLASSPATH and HADOOP_TASKTRACKER_OPTS and don't forget to deploy configuration on client nodes from cloudera manager web UI. When you fire deploy client configuration command configuration will get loaded on each node and your job will get latest configuration on each node without any issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 10:27:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6275#M955</guid>
      <dc:creator>ChiragPatadia</dc:creator>
      <dc:date>2014-02-14T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError thrown when using TypedBytesWritable for SequenceFile key and value</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6293#M956</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Shame on me for not "finishing the job" as it were.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:37:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NoClassDefFoundError-thrown-when-using-TypedBytesWritable/m-p/6293#M956</guid>
      <dc:creator>Bogolese</dc:creator>
      <dc:date>2014-02-14T15:37:43Z</dc:date>
    </item>
  </channel>
</rss>

