<?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 phoenix from spark in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183082#M61634</link>
    <description>&lt;P&gt;I am trying to access phoenix table from spark and have enabled pheonix namespace on the server.  when i try to access using the phoenix client (sqlline.py), i am able to do without issue. But when i try to access usign spark-shell i get the foll0wing error.&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException: ERROR 726 (43M10):  Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled&lt;/PRE&gt;&lt;P&gt;Even i tried printing the classpath of spark-shell and i do see the hbase-site.xml in the classpath.&lt;/P&gt;&lt;PRE&gt;Spark Command: /usr/java/jdk1.8.0_60//bin/java -Dhdp.version=2.6.0.3-8 -cp /usr/hdp/current/phoenix-client/phoenix-4.8.1-HBase-1.1-client.jar:/etc/hbase/conf/hbase-site.xml:/usr/hdp/current/spark-client/conf/:/usr/hdp/current/spark-client/lib/spark-assembly-1.6.3.2.6.0.3-8-hadoop2.7.3.2.6.0.3-8.jar:/usr/hdp/current/spark-client/lib/datanucleus-api-jdo-3.2.6.jar:/usr/hdp/current/spark-client/lib/datanucleus-core-3.2.10.jar:/usr/hdp/current/spark-client/lib/datanucleus-rdbms-3.2.9.jar:/usr/hdp/current/hadoop-client/conf/:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-s3-1.10.6.jar:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-core-1.10.6.jar:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-kms-1.10.6.jar -Dscala.usejavacp=true -Xms1g -Xmx1g org.apache.spark.deploy.SparkSubmit --class org.apache.spark.repl.Main --name Spark shell&lt;/PRE&gt;&lt;P&gt;What could be the issue. How do i pass the the phoenix namespace enabled parameter from spark-shell?&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 19:56:21 GMT</pubDate>
    <dc:creator>arunpoy</dc:creator>
    <dc:date>2017-05-23T19:56:21Z</dc:date>
    <item>
      <title>phoenix from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183082#M61634</link>
      <description>&lt;P&gt;I am trying to access phoenix table from spark and have enabled pheonix namespace on the server.  when i try to access using the phoenix client (sqlline.py), i am able to do without issue. But when i try to access usign spark-shell i get the foll0wing error.&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException: ERROR 726 (43M10):  Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled&lt;/PRE&gt;&lt;P&gt;Even i tried printing the classpath of spark-shell and i do see the hbase-site.xml in the classpath.&lt;/P&gt;&lt;PRE&gt;Spark Command: /usr/java/jdk1.8.0_60//bin/java -Dhdp.version=2.6.0.3-8 -cp /usr/hdp/current/phoenix-client/phoenix-4.8.1-HBase-1.1-client.jar:/etc/hbase/conf/hbase-site.xml:/usr/hdp/current/spark-client/conf/:/usr/hdp/current/spark-client/lib/spark-assembly-1.6.3.2.6.0.3-8-hadoop2.7.3.2.6.0.3-8.jar:/usr/hdp/current/spark-client/lib/datanucleus-api-jdo-3.2.6.jar:/usr/hdp/current/spark-client/lib/datanucleus-core-3.2.10.jar:/usr/hdp/current/spark-client/lib/datanucleus-rdbms-3.2.9.jar:/usr/hdp/current/hadoop-client/conf/:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-s3-1.10.6.jar:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-core-1.10.6.jar:/usr/hdp/current/hadoop-client/lib/aws-java-sdk-kms-1.10.6.jar -Dscala.usejavacp=true -Xms1g -Xmx1g org.apache.spark.deploy.SparkSubmit --class org.apache.spark.repl.Main --name Spark shell&lt;/PRE&gt;&lt;P&gt;What could be the issue. How do i pass the the phoenix namespace enabled parameter from spark-shell?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 19:56:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183082#M61634</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2017-05-23T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183083#M61635</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you try putting the correct "hbase-site.xml" in spark conf directory. &lt;/P&gt;&lt;P&gt;Also check if it is picking up the right file which has the mentioned property?  Or incorrect file?&lt;/P&gt;&lt;PRE&gt;phoenix.schema.isNamespaceMappingEnabled&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 20:13:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183083#M61635</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-23T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183084#M61636</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;It works fine now. But is there a way to do this setting in ambari. copying hbase-site.xml to more than 30 nodes is not the right way as there is a chance to miss.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 23:05:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183084#M61636</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2017-05-23T23:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix from spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183085#M61637</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good to know that the issue is resolved. I am not aware of any such operation from ambari side to paste the "hbase-site.xml"  as it depends on customer's usecase. Like some customers might want to use spark but not HBase.  
&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 23:47:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-from-spark/m-p/183085#M61637</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-23T23:47:03Z</dc:date>
    </item>
  </channel>
</rss>

