<?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: Spark2 Phoenix Plugin with Zeppelin in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220343#M182228</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10159/snemuri.html" nodeid="10159"&gt;@Sandeep Nemuri&lt;/A&gt; &lt;BR /&gt;Thanks for the pointers. I finally got it working. For others running Spark-Phoenix in Zeppelin you need to:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;On the spark client node, create a symbolic link of 'hbase-site.xml' into the spark /conf file:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;ln -s /usr/hdp/current/hbase-master/conf/hbase-site.xml /usr/hdp/current/spark2-client/conf/hbase-site.xml&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Add the following to both spark.driver.extraClassPath and spark.executor.extraClassPath in spark-defaults.conf:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/hdp/current/hbase-client/lib/hbase-common.jar:/usr/hdp/current/hbase-client/lib/hbase-client.jar:/usr/hdp/current/hbase-client/lib/hbase-server.jar:/usr/hdp/current/hbase-client/lib/hbase-protocol.jar:/usr/hdp/current/hbase-client/lib/guava-12.0.1.jar:/usr/hdp/current/hbase-client/lib/htrace-core-3.1.0-incubating.jar:/usr/hdp/current/spark-client/lib/spark-assembly-1.6.1.2.4.2.0-258-hadoop2.7.1.2.4.2.0-258.jar:/usr/hdp/current/phoenix-client/phoenix-client.jar&lt;/PRE&gt;&lt;UL&gt;
&lt;LI&gt;Add the following jars in Zeppelin under the Spark2 interpreter's dependencies&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/hdp/current/phoenix-server/lib/phoenix-spark-5.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-master/lib/hbase-common-2.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-client/lib/hbase-client-2.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-client/lib/htrace-core-3.2.0-incubating.jar&lt;BR /&gt;/usr/hdp/current/phoenix-client/phoenix-client.jar&lt;BR /&gt;/usr/hdp/current/phoenix-client/phoenix-server.jar&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Aug 2018 03:32:18 GMT</pubDate>
    <dc:creator>daniel_zafar</dc:creator>
    <dc:date>2018-08-17T03:32:18Z</dc:date>
    <item>
      <title>Spark2 Phoenix Plugin with Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220340#M182225</link>
      <description>&lt;P&gt;Hello, I'm looking to read tables from Phoenix using Zeppelin. I don't want to use the JDBC connection in favor of the plugin described here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://phoenix.apache.org/phoenix_spark.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://phoenix.apache.org/phoenix_spark.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I believe I am not specifying the dependencies correctly because even though I added this to Zeppelin Interpreter (see zeppelin-phoenix-config.png). I'm still getting the following error:&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;import org.apache.spark.SparkContext
import org.apache.spark.sql.SQLContext
import org.apache.phoenix.spark._
error: object phoenix is not a member of package org.apache
&lt;/PRE&gt;&lt;P&gt;How do I fix this? I've also added&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/phoenix-server/lib/:/usr/hdp/current/phoenix-client/lib/:/usr/hdp/current/phoenix-server/&lt;/PRE&gt;&lt;P&gt;to both spark.driver.extraClassPath and spark.executor.extraClassPath in Spark2's spark.defaults.conf.&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;&lt;P&gt;P.S. I'm trying to figure all this out so that I can write a sparklyr extension to interact with Hbase data through Phoenix. Any pointers toward that goal are appreciated as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86477-zeppelin-phoenix-config.png" style="width: 1190px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15896i4CFBEFD216320B3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86477-zeppelin-phoenix-config.png" alt="86477-zeppelin-phoenix-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:29:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220340#M182225</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2019-08-18T02:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spark2 Phoenix Plugin with Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220341#M182226</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;
&lt;/P&gt;&lt;P&gt;This article should help you out : &lt;A href="https://community.hortonworks.com/content/supportkb/150591/how-to-connect-hbase-and-phoenix-tables-in-secure.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/150591/how-to-connect-hbase-and-phoenix-tables-in-secure.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Configure the zeppelin interpreter accordingly. &lt;/P&gt;&lt;P&gt;Edit: If using Spark2 : &lt;A href="https://community.hortonworks.com/articles/179762/how-to-connect-to-phoenix-tables-using-spark2.html" target="_blank"&gt;https://community.hortonworks.com/articles/179762/how-to-connect-to-phoenix-tables-using-spark2.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 01:33:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220341#M182226</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-08-15T01:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark2 Phoenix Plugin with Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220342#M182227</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;, Did the above articles helped you? &lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 13:33:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220342#M182227</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-08-15T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Spark2 Phoenix Plugin with Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220343#M182228</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10159/snemuri.html" nodeid="10159"&gt;@Sandeep Nemuri&lt;/A&gt; &lt;BR /&gt;Thanks for the pointers. I finally got it working. For others running Spark-Phoenix in Zeppelin you need to:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;On the spark client node, create a symbolic link of 'hbase-site.xml' into the spark /conf file:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;ln -s /usr/hdp/current/hbase-master/conf/hbase-site.xml /usr/hdp/current/spark2-client/conf/hbase-site.xml&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Add the following to both spark.driver.extraClassPath and spark.executor.extraClassPath in spark-defaults.conf:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/hdp/current/hbase-client/lib/hbase-common.jar:/usr/hdp/current/hbase-client/lib/hbase-client.jar:/usr/hdp/current/hbase-client/lib/hbase-server.jar:/usr/hdp/current/hbase-client/lib/hbase-protocol.jar:/usr/hdp/current/hbase-client/lib/guava-12.0.1.jar:/usr/hdp/current/hbase-client/lib/htrace-core-3.1.0-incubating.jar:/usr/hdp/current/spark-client/lib/spark-assembly-1.6.1.2.4.2.0-258-hadoop2.7.1.2.4.2.0-258.jar:/usr/hdp/current/phoenix-client/phoenix-client.jar&lt;/PRE&gt;&lt;UL&gt;
&lt;LI&gt;Add the following jars in Zeppelin under the Spark2 interpreter's dependencies&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/hdp/current/phoenix-server/lib/phoenix-spark-5.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-master/lib/hbase-common-2.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-client/lib/hbase-client-2.0.0.3.0.0.0-1634.jar&lt;BR /&gt;/usr/hdp/current/hbase-client/lib/htrace-core-3.2.0-incubating.jar&lt;BR /&gt;/usr/hdp/current/phoenix-client/phoenix-client.jar&lt;BR /&gt;/usr/hdp/current/phoenix-client/phoenix-server.jar&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Aug 2018 03:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/220343#M182228</guid>
      <dc:creator>daniel_zafar</dc:creator>
      <dc:date>2018-08-17T03:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spark2 Phoenix Plugin with Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/323061#M229005</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;i tried to make changes that you wrote. But i couldnt able to save my data to phoenix. I m using pyspark within hdp 3.0.1.0. I got error in zeppelin like java.lang.ClassNotFoundException: Class org.apache.phoenix.mapreduce.PhoenixOutputFormat not found&lt;/P&gt;&lt;P&gt;Did you meet such a problem like above?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;My interpreter settings are;(I tried lots of config combinations but none of them worked)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;spark.executor.extraClassPath&lt;/TD&gt;&lt;TD&gt;&lt;SPAN class="ng-scope ng-binding editable"&gt;/usr/hdp/3.0.1.0-187/phoenix/phoenix-5.0.0.3.0.1.0-187-client.jar,/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-spark-5.0.0.3.0.1.0-187.jar,/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-core-5.0.0.3.0.1.0-187.jar,/usr/hdp/current/hbase-client/lib/hbase-common.jar:/usr/hdp/current/hbase-client/lib/hbase-client.jar,/usr/hdp/current/hbase-client/lib/hbase-server.jar,/usr/hdp/current/hbase-client/lib/hbase-protocol.jar,/usr/hdp/current/hbase-client/lib/guava-11.0.2.jar,/usr/hdp/current/hbase-client/lib/htrace-core-3.2.0-incubating.jar,/usr/hdp/current/phoenix-client/phoenix-client.jar &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;spark.driver.extraClassPath&lt;/TD&gt;&lt;TD&gt;&lt;SPAN class="ng-scope ng-binding editable"&gt;/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-spark-5.0.0.3.0.1.0-187.jar,/usr/hdp/3.0.1.0-187/phoenix/phoenix-5.0.0.3.0.1.0-187-client.jar,/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-core-5.0.0.3.0.1.0-187.jar &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;spark.jars&lt;/TD&gt;&lt;TD&gt;&lt;SPAN class="ng-scope ng-binding editable"&gt;/usr/hdp/current/hive_warehouse_connector/hive-warehouse-connector-assembly-1.0.0.3.0.1.0-187.jar,/usr/hdp/3.0.1.0-187/zeppelin/lib/shc-core-1.1.1-2.1-s_2.11.jar,/usr/hdp/current/spark-solr-3.5.5-shaded.jar,/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-spark-5.0.0.3.0.1.0-187.jar,/usr/hdp/3.0.1.0-187/phoenix/phoenix-5.0.0.3.0.1.0-187-client.jar,/usr/hdp/current/hbase-client/lib/hbase-common-2.0.0.3.0.1.0-187.jar,/usr/hdp/3.0.1.0-187/phoenix/lib/phoenix-core-5.0.0.3.0.1.0-187.jar,/usr/hdp/current/hbase-master/lib/hbase-common-2.0.0.3.0.1.0-187.jar,/usr/hdp/current/hbase-client/lib/hbase-client-2.0.0.3.0.1.0-187.jar,/usr/hdp/current/hbase-client/lib/htrace-core-3.2.0-incubating.jar,/usr/hdp/current/phoenix-client/phoenix-client.jar,/usr/hdp/current/phoenix-client/phoenix-server.jar &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark2-Phoenix-Plugin-with-Zeppelin/m-p/323061#M229005</guid>
      <dc:creator>zeybi</dc:creator>
      <dc:date>2021-08-24T09:34:26Z</dc:date>
    </item>
  </channel>
</rss>

