<?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: Managing jars while connect Phoenix to Zeppelin in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220776#M82174</link>
    <description>&lt;P&gt;you're the best &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 03:24:49 GMT</pubDate>
    <dc:creator>daniel_zafar</dc:creator>
    <dc:date>2018-08-17T03:24:49Z</dc:date>
    <item>
      <title>Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220770#M82168</link>
      <description>&lt;P&gt;I'm trying to use the Phoenix-Spark2 connector in Zeppelin as described &lt;A href="https://phoenix.apache.org/phoenix_spark.html"&gt;here&lt;/A&gt; and having some confusion about dependencies&lt;/P&gt;&lt;P&gt;Here is the code I'm running:&lt;/P&gt;&lt;PRE&gt;import org.apache.spark.SparkContext
import org.apache.spark.sql.SQLContext
import org.apache.phoenix.spark._
val sc = new SparkContext("local", "phoenix-test")
val sqlContext = new SQLContext(sc)
val df = sqlContext.load(
  "org.apache.phoenix.spark",
  Map("table" -&amp;gt; "dz_places",
      "zkUrl" -&amp;gt; "driver_node:2181"))
&lt;/PRE&gt;&lt;P&gt;I keep getting ClassNotFound Exceptions so I go and find the related jar and add it to the Zeppelin Spark2 interpreter dependencies. So far I've added these jars:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/phoenix-server/lib/phoenix-spark-5.0.0.3.0.0.0-1634.jar
/usr/hdp/current/phoenix-server/lib/phoenix-core-5.0.0.3.0.0.0-1634.jar
/usr/hdp/current/hbase-master/lib/hbase-common-2.0.0.3.0.0.0-1634.jar
/usr/hdp/current/hbase-client/lib/hbase-client-2.0.0.3.0.0.0-1634.jar
/usr/hdp/current/hbase-client/lib/htrace-core-3.2.0-incubating.jar&lt;/PRE&gt;&lt;P&gt;Now I'm seeing this error:&lt;/P&gt;&lt;PRE&gt;java.lang.NoClassDefFoundError: org/apache/tephra/TransactionSystemClient&lt;/PRE&gt;&lt;P&gt;I'm not seeing this jar in any of the Hbase or Phoenix lib folders. What's going on? Why do I need to add all these? Where is this particular class housed? Is there a better way to specify these? Using /usr/hdp/current/hbase-client/lib/*.jar threw an error.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 13:03:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220770#M82168</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2018-08-15T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220771#M82169</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/92177/danielzafar.html" nodeid="92177"&gt;@Daniel Zafar&lt;/A&gt;! &lt;BR /&gt;It seems that your Phoenix it's with ACID feat enable. &lt;/P&gt;&lt;P&gt;&lt;A href="https://phoenix.apache.org/transactions.html" target="_blank"&gt;https://phoenix.apache.org/transactions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So that's why Phoenix is complaining about tephra (http://tephra.incubator.apache.org/).&lt;/P&gt;&lt;P&gt;Take a look at the link below, has some good explanations about how to enable tephra.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/113991/enabling-transaction-in-phoenix-issue.html" target="_blank"&gt;https://community.hortonworks.com/questions/113991/enabling-transaction-in-phoenix-issue.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 10:21:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220771#M82169</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-08-16T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220772#M82170</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/79158/vmurakami.html" nodeid="79158"&gt;@Vinicius Higa Murakami&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I don't mind providing the jars but is there a way to add all of them in once to Zeppelin? I'm also have trouble figuring out which Phoenix jar this class is from. Do you know?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:40:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220772#M82170</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2018-08-16T11:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220773#M82171</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/92177/danielzafar.html" nodeid="92177"&gt;@Daniel
 Zafar&lt;/A&gt; Additionally you'd need to add phoenix-client.jar in the classpath. &lt;/P&gt;&lt;PRE&gt;jar tvf  phoenix-client.jar | grep TransactionSystemClient
1548 Thu Jul 12 20:37:06 UTC 2018 org/apache/tephra/TransactionSystemClient.class&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:31:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220773#M82171</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-08-16T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220774#M82172</link>
      <description>&lt;P&gt;How about this one?&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/lmax/disruptor/EventFactory&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Aug 2018 22:41:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220774#M82172</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2018-08-16T22:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220775#M82173</link>
      <description>&lt;P&gt;Some jar conflicts, Try removing the phoenix-core jar from the classpath. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 23:44:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220775#M82173</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-08-16T23:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Managing jars while connect Phoenix to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220776#M82174</link>
      <description>&lt;P&gt;you're the best &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 03:24:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-jars-while-connect-Phoenix-to-Zeppelin/m-p/220776#M82174</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2018-08-17T03:24:49Z</dc:date>
    </item>
  </channel>
</rss>

