<?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: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90933#M21730</link>
    <description>&lt;P&gt;Hi Nandyal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the Error it seems there was an jar file missing. Could you please share the entire stacktrace for further analysis on this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 17:13:08 GMT</pubDate>
    <dc:creator>AKR</dc:creator>
    <dc:date>2019-05-27T17:13:08Z</dc:date>
    <item>
      <title>Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90790#M21729</link>
      <description>&lt;P&gt;Despite adding the following,&amp;nbsp;&lt;/P&gt;&lt;P&gt;--conf spark.driver.extraClassPath=/opt/cloudera/parcels/CDH/jars/htrace-core-3.2.0-incubating.jar:/opt/cloudera/parcels/CDH/lib/hive/conf:/opt/cloudera/parcels/CDH/lib/hive/lib/*.jar \&lt;BR /&gt;--conf spark.executor.extraClassPath=/opt/cloudera/parcels/CDH/jars/htrace-core-3.2.0-incubating.jar:/opt/cloudera/parcels/CDH/lib/hive/conf:/opt/cloudera/parcels/CDH/lib/hive/lib/*.jar \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following exception:&lt;/P&gt;&lt;P&gt;Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the file permission and directory permission and they have the right permission (directories have and read and execute perms while the files have 755 perms).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know what needs to be changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:24:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90790#M21729</guid>
      <dc:creator>Nandyal</dc:creator>
      <dc:date>2022-09-16T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90933#M21730</link>
      <description>&lt;P&gt;Hi Nandyal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the Error it seems there was an jar file missing. Could you please share the entire stacktrace for further analysis on this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 17:13:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90933#M21730</guid>
      <dc:creator>AKR</dc:creator>
      <dc:date>2019-05-27T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90981#M21731</link>
      <description>&lt;P&gt;Hey AK,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Following is the stack trace:&lt;/P&gt;&lt;P&gt;10:13:28,194 WARN [TaskSetManager] Lost task 8.0 in stage 1.0 (TID 4, hostname.domain.com, executor 12): java.io.IOException: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:240)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$$anonfun$getConnection$1.apply(HBaseConnectionCache.scala:121)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$$anonfun$getConnection$1.apply(HBaseConnectionCache.scala:121)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$$anonfun$1.apply(HBaseConnectionCache.scala:114)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$$anonfun$1.apply(HBaseConnectionCache.scala:113)&lt;BR /&gt;at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:189)&lt;BR /&gt;at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:91)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$.getConnection(HBaseConnectionCache.scala:113)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseConnectionCache$.getConnection(HBaseConnectionCache.scala:121)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseContext.org$apache$hadoop$hbase$spark$HBaseContext$$hbaseForeachPartition(HBaseContext.scala:459)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseContext$$anonfun$bulkPut$1.apply(HBaseContext.scala:217)&lt;BR /&gt;at org.apache.hadoop.hbase.spark.HBaseContext$$anonfun$bulkPut$1.apply(HBaseContext.scala:217)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$33.apply(RDD.scala:920)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$33.apply(RDD.scala:920)&lt;BR /&gt;at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1888)&lt;BR /&gt;at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1888)&lt;BR /&gt;at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)&lt;BR /&gt;at org.apache.spark.scheduler.Task.run(Task.scala:89)&lt;BR /&gt;at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:242)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)&lt;BR /&gt;... 23 more&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace&lt;BR /&gt;at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:216)&lt;BR /&gt;at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:419)&lt;BR /&gt;at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:935)&lt;BR /&gt;at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.&amp;lt;init&amp;gt;(ConnectionManager.java:659)&lt;BR /&gt;... 28 more&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.htrace.Trace&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:381)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;BR /&gt;... 34 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:15:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90981#M21731</guid>
      <dc:creator>Nandyal</dc:creator>
      <dc:date>2019-05-28T16:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90982#M21732</link>
      <description>&lt;P&gt;And the Trace class is present in&amp;nbsp;htrace-core-3.2.0-incubating.jar, which has been set in&amp;nbsp;&lt;/P&gt;&lt;P&gt;spark.driver.extraclasspath and spark.executor.extraClassPath config variables at the time of spark-submit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Nandyal&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:18:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/90982#M21732</guid>
      <dc:creator>Nandyal</dc:creator>
      <dc:date>2019-05-28T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/91202#M21733</link>
      <description>I tried doing this as well, with no success:&lt;BR /&gt;added the hbase jars to the executor classpath via the following setting:&lt;BR /&gt;signed in to ClouderaManager&lt;BR /&gt;went to the Spark on YARN service&lt;BR /&gt;went to the Configuration tab&lt;BR /&gt;typed defaults in the search box&lt;BR /&gt;selected gateway in the scope&lt;BR /&gt;added the entry:&lt;BR /&gt;spark.executor.extraClassPath=/opt/cloudera/parcels/CDH/lib/hbase/lib/htrace-core-3.2.0-incubating.jar</description>
      <pubDate>Tue, 04 Jun 2019 14:45:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/91202#M21733</guid>
      <dc:creator>Nandyal</dc:creator>
      <dc:date>2019-06-04T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/Trace</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/91518#M21734</link>
      <description>&lt;P&gt;After making a small change to the location of the jar, we got it working. The steps are as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;added the hbase jars to the executor classpath via the following setting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;signed in to ClouderaManager&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;went to the Spark on YARN service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;went to the Configuration tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;typed defaults in the search box&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selected gateway in the scope&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;added the entry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spark.executor.extraClassPath=/hdfs03/parcels/CDH/lib/hbase/lib/htrace-core-3.2.0-incubating.jar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: we had to use the hdfs directory path.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:07:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Caused-by-java-lang-NoClassDefFoundError-org-apache-htrace/m-p/91518#M21734</guid>
      <dc:creator>Nandyal</dc:creator>
      <dc:date>2019-06-12T15:07:14Z</dc:date>
    </item>
  </channel>
</rss>

