<?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: hive and hbase issue. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186582#M148684</link>
    <description>@&lt;A href="https://community.hortonworks.com/users/19449/msumbul.html"&gt;msumbul&lt;/A&gt;&lt;P style="background-color: initial;"&gt;Issue was when I try to update the table or do the slect count query I was getting error  &lt;/P&gt;&lt;P style="background-color: initial; display: inline !important;"&gt;&lt;A href="https://community.hortonworks.com/users/19449/msumbul.html"&gt;Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enable&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Issue was with phoenix 4.7 jar only.&lt;/P&gt;&lt;P&gt;I have resolve this issue by doing following stpes:-&lt;/P&gt;&lt;P&gt;I was facing same kind of issue. I have resolve this issue by using following steps:-&lt;/P&gt;&lt;P&gt;1) Edit Ambari-&amp;gt;Hive-&amp;gt;Configs-&amp;gt;Advanced-&amp;gt;Custom hive-site-&amp;gt;Add Property..., add the following properties based on your HBase configurations(you can search in Ambari-&amp;gt;HBase-&amp;gt;Configs): custom hive-site.xml&lt;/P&gt;&lt;P&gt;hbase.zookeeper.quorum=xyz (find this property value from hbase )&lt;/P&gt;&lt;P&gt;zookeeper.znode.parent=/hbase-unsecure (find this property value from hbase )&lt;/P&gt;&lt;P&gt;phoenix.schema.mapSystemTablesToNamespace=true&lt;/P&gt;&lt;P&gt;phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;2) Copy jar to /usr/hdp/current/hive-server2/auxlib from&lt;/P&gt;&lt;P&gt;/usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-hive.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.5.6.0-40/phoenix/phoenix-hive-4.7.0.2.5.6.0-40-sources.jar If he jar is not working for you then just try to get following jar phoenix-hive-4.7.0.2.5.3.0-37.jar and copy this to /usr/hdp/current/hive-server2/auxlib&lt;/P&gt;&lt;P&gt;3) add property to custom-hive-env&lt;/P&gt;&lt;P&gt;HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-server2/auxlib/4) Add follwoing property to custom-hbase-site.xmlphoenix.schema.mapSystemTablesToNamespace=true phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;5) Also run following command&lt;/P&gt;&lt;P&gt;1) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hive/conf/hive-site.xml&lt;/P&gt;&lt;P&gt;2) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hbase/conf/hbase-site.xml&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 01:17:47 GMT</pubDate>
    <dc:creator>ashneesharma88</dc:creator>
    <dc:date>2017-09-14T01:17:47Z</dc:date>
    <item>
      <title>hive and hbase issue.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186580#M148682</link>
      <description>&lt;P&gt;I am using hdp 2.5  and getting following error&lt;/P&gt;&lt;P&gt;Diagnostic Messages for this Task:
Error: java.lang.RuntimeException: Error in configuring object
        at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:112)
        at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:78)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
        at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:449)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:170)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1865)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:109)
        ... 9 more
Caused by: java.lang.RuntimeException: Error in configuring object
        at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:112)
        at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:78)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
        at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:38)
        ... 14 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:109)
        ... 17 more
Caused by: java.lang.RuntimeException: Map operator initialization failed
        at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:140)
        ... 22 more
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.serde2.SerDeException: 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
        at org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:450)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:363)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:482)
        at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:439)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:376)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:482)
        at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:439)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:376)
        at org.apache.hadoop.hive.ql.exec.MapOperator.initializeMapOperator(MapOperator.java:489)
        at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:119)
        ... 22 more
Caused by: org.apache.hadoop.hive.serde2.SerDeException: 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
        at org.apache.phoenix.hive.PhoenixSerializer.&amp;lt;init&amp;gt;(PhoenixSerializer.java:82)
        at org.apache.phoenix.hive.PhoenixSerDe.initialize(PhoenixSerDe.java:86)
        at org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:360)
        ... 31 more
Caused by: 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
        at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:441)
        at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2367)
        at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2327)
        at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:78)
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2327)
        at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:233)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:142)
        at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:202)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:208)
        at org.apache.phoenix.hive.util.PhoenixConnectionUtil.getConnection(PhoenixConnectionUtil.java:96)
        at org.apache.phoenix.hive.util.PhoenixConnectionUtil.getInputConnection(PhoenixConnectionUtil.java:63)
        at org.apache.phoenix.hive.PhoenixSerializer.&amp;lt;init&amp;gt;(PhoenixSerializer.java:70)
        ... 33 more&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 13:33:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186580#M148682</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-09-13T13:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: hive and hbase issue.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186581#M148683</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;,&lt;BR /&gt;Can you please provide more context? what's exactly the issue?&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:28:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186581#M148683</guid>
      <dc:creator>msumbul1</dc:creator>
      <dc:date>2017-09-13T19:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: hive and hbase issue.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186582#M148684</link>
      <description>@&lt;A href="https://community.hortonworks.com/users/19449/msumbul.html"&gt;msumbul&lt;/A&gt;&lt;P style="background-color: initial;"&gt;Issue was when I try to update the table or do the slect count query I was getting error  &lt;/P&gt;&lt;P style="background-color: initial; display: inline !important;"&gt;&lt;A href="https://community.hortonworks.com/users/19449/msumbul.html"&gt;Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enable&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Issue was with phoenix 4.7 jar only.&lt;/P&gt;&lt;P&gt;I have resolve this issue by doing following stpes:-&lt;/P&gt;&lt;P&gt;I was facing same kind of issue. I have resolve this issue by using following steps:-&lt;/P&gt;&lt;P&gt;1) Edit Ambari-&amp;gt;Hive-&amp;gt;Configs-&amp;gt;Advanced-&amp;gt;Custom hive-site-&amp;gt;Add Property..., add the following properties based on your HBase configurations(you can search in Ambari-&amp;gt;HBase-&amp;gt;Configs): custom hive-site.xml&lt;/P&gt;&lt;P&gt;hbase.zookeeper.quorum=xyz (find this property value from hbase )&lt;/P&gt;&lt;P&gt;zookeeper.znode.parent=/hbase-unsecure (find this property value from hbase )&lt;/P&gt;&lt;P&gt;phoenix.schema.mapSystemTablesToNamespace=true&lt;/P&gt;&lt;P&gt;phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;2) Copy jar to /usr/hdp/current/hive-server2/auxlib from&lt;/P&gt;&lt;P&gt;/usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-hive.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.5.6.0-40/phoenix/phoenix-hive-4.7.0.2.5.6.0-40-sources.jar If he jar is not working for you then just try to get following jar phoenix-hive-4.7.0.2.5.3.0-37.jar and copy this to /usr/hdp/current/hive-server2/auxlib&lt;/P&gt;&lt;P&gt;3) add property to custom-hive-env&lt;/P&gt;&lt;P&gt;HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-server2/auxlib/4) Add follwoing property to custom-hbase-site.xmlphoenix.schema.mapSystemTablesToNamespace=true phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;5) Also run following command&lt;/P&gt;&lt;P&gt;1) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hive/conf/hive-site.xml&lt;/P&gt;&lt;P&gt;2) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hbase/conf/hbase-site.xml&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 01:17:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186582#M148684</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-09-14T01:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: hive and hbase issue.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186583#M148685</link>
      <description>&lt;P&gt;Before PHOENIX-3288 is resolved, please set  phoenix.schema.isNamespaceMappingEnabled to true.&lt;/P&gt;&lt;P&gt;hbase-site.xml should be on the classpath&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 01:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-and-hbase-issue/m-p/186583#M148685</guid>
      <dc:creator>tyu</dc:creator>
      <dc:date>2017-09-14T01:18:26Z</dc:date>
    </item>
  </channel>
</rss>

