<?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: phoenix create table with schema. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192157#M71024</link>
    <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;Please guide me. Needed urgent help.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 12:47:50 GMT</pubDate>
    <dc:creator>ashneesharma88</dc:creator>
    <dc:date>2017-11-22T12:47:50Z</dc:date>
    <item>
      <title>phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192152#M71019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using HDP 2.5.3.0 version.&lt;/P&gt;&lt;P&gt;I have created schema in phoenix and under that schema I have created table.&lt;/P&gt;&lt;P&gt;After creating table in phoenix, I have tried to created external table on hive. But while creating table I am getting following error.&lt;/P&gt;&lt;P&gt;Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=ACCOUNT1&lt;/P&gt;&lt;P&gt;DDL:-  &lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE account1 (
acct_no Int ,
acct_descr string
)
ROW FORMAT SERDE
  'org.apache.phoenix.hive.PhoenixSerDe'
STORED BY 'org.apache.phoenix.hive.PhoenixStorageHandler'
TBLPROPERTIES (
  "phoenix.table.name" = "account1",
"phoenix.zookeeper.quorum"="&amp;lt;ZKNODE&amp;gt;", 
  "phoenix.zookeeper.znode.parent" = "/hbase-unsecure",
  "phoenix.zookeeper.client.port" = "2181",
  "phoenix.rowkeys" = "acct_no",
  "phoenix.column.mapping" = "acct_no:acct_no, acct_descr:acct_descr"); &lt;/P&gt;&lt;P&gt;Tried following steps also to resolve the issue.&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;&lt;P&gt;3) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-hive-4.7.0.2.5.3.0-37.jar /etc/hbase/conf/hbase-site.xml &lt;/P&gt;&lt;P&gt;4) jar uf /usr/hdp/current/hive-server2/auxlib/phoenix-hive-4.7.0.2.5.3.0-37.jar /etc/hive/conf/hive-site.xml &lt;/P&gt;&lt;P&gt;5) jar -uf /usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hive/conf/hive-site.xml&lt;/P&gt;&lt;P&gt;
6) jar -uf /usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-client.jar /etc/hbase/conf/hbase-site.xml &lt;/P&gt;&lt;P&gt;7) 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
hbase.zookeeper.quorum= ZKNODEt
zookeeper.znode.parent=/hbase-unsecure &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;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Restart Hive via Ambari &lt;/P&gt;&lt;P&gt;9) Copy jar to /usr/hdp/current/hive-server2/auxlib from 
/usr/hdp/2.5.6.0-40/phoenix/phoenix-4.7.0.2.5.6.0-40-hive.jar
/usr/hdp/2.5.6.0-40/phoenix/phoenix-hive-4.7.0.2.5.6.0-40-sources.jar
download jar phoenix-hive-4.7.0.2.5.3.0-37.jar
HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-server2/auxlib &lt;/P&gt;&lt;P&gt;10)phoenix.schema.mapSystemTablesToNamespace=true&lt;/P&gt;&lt;P&gt;
  phoenix.schema.isNamespaceMappingEnabled=true&lt;/P&gt;&lt;P&gt;Please help on this. Need urgent help.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 02:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192152#M71019</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-11-09T02:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192153#M71020</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;P&gt;Hive Phoenix handler is not a supported feature in HDP 2.5.x versions. This feature is available as Tech Preview feature starting HDP 2.6.2. Below is the document with list of TP features in HDP 2.6.2:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_release-notes/content/tech_previews.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_release-notes/content/tech_previews.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:34:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192153#M71020</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-11-09T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192154#M71021</link>
      <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;P&gt; when production release is coming for the same?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:35:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192154#M71021</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-11-09T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192155#M71022</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;P&gt;Usually, it should be GA in next major release, but cannot confirm on that.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:37:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192155#M71022</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-11-09T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192156#M71023</link>
      <description>&lt;P&gt;@Sindhu &lt;/P&gt;&lt;P&gt;After deploying HDP 2.6.2 I am getting follwoing error whicle doing select * from statemnet.&lt;/P&gt;&lt;P&gt;Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.phoenix.schema.ColumnNotFoundException: ERROR 504 (42703): Undefined column. columnName=acct_no&lt;/P&gt;&lt;P&gt;Please suggest any configuration needed.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 18:11:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192156#M71023</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-11-09T18:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192157#M71024</link>
      <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;Please guide me. Needed urgent help.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:47:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192157#M71024</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-11-22T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192158#M71025</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;&lt;/A&gt;The issue could be due to mismatch in the column cases of the Hive table columns being mapped to Phoenix table.&lt;/P&gt;&lt;P&gt;Match the case of columns under phoenix.column.mapping for example,&lt;/P&gt;&lt;P&gt;CREATE external db.test( &lt;BR /&gt;teste_hive decimal(38,10) &lt;BR /&gt;,teste1_hive decimal(38,10) &lt;BR /&gt;) &lt;BR /&gt;STORED BY 'org.apache.phoenix.hive.PhoenixStorageHandler' &lt;BR /&gt;WITH SERDEPROPERTIES ( 'serialization.format'='1') &lt;BR /&gt;TBLPROPERTIES ( 'COLUMN_STATS_ACCURATE'='{\"BASIC_STATS\":\"true\"}', &lt;BR /&gt;'phoenix.column.mapping’=“teste_hive:TESTE,teste1_hive:TESTE1”, &lt;BR /&gt;'phoenix.rowkeys’=’TESTE1’, &lt;BR /&gt;'phoenix.table.name'='TEST_PHOENIX_TABLE’, &lt;BR /&gt;'phoenix.zookeeper.client.port'='2181', &lt;BR /&gt;'phoenix.zookeeper.quorum'='x.com', &lt;BR /&gt;'phoenix.zookeeper.znode.parent'='/hbase-unsecure' ); &lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:46:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192158#M71025</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-11-27T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192159#M71026</link>
      <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;The issue is resolved. We were trying to create table in phoenix then trying to create in hive. Now we are creating tables directly into the hive and also able to see tables in phoenix. &lt;/P&gt;&lt;P&gt;Just need to know am I doing right method?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192159#M71026</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-11-28T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192160#M71027</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;For INTERNAL tables, Hive manages the lifecycle of the table and data. When a Hive table is created, a corresponding Phoenix table is also created. Once the Hive table is dropped, the Phoenix table is also deleted.&lt;P&gt;For EXTERNAL tables, Hive works with an existing Phoenix table and manages only Hive metadata. Dropping an EXTERNAL table from Hive deletes only Hive metadata but does not delete the Phoenix table.&lt;/P&gt;&lt;P&gt;Refer &lt;A href="https://phoenix.apache.org/hive_storage_handler.html" target="_blank"&gt;https://phoenix.apache.org/hive_storage_handler.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:43:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192160#M71027</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-11-28T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192161#M71028</link>
      <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 00:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192161#M71028</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-12-16T00:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix create table with schema.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192162#M71029</link>
      <description>&lt;P&gt;@Sindhu&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 00:32:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/phoenix-create-table-with-schema/m-p/192162#M71029</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-12-16T00:32:06Z</dc:date>
    </item>
  </channel>
</rss>

