<?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: mapping hbase to phoenix tables going wrong in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218953#M77314</link>
    <description>&lt;P&gt;hi Josh I did follow that link but its showing one column table example and I have multiple columns , I tried various options to make multiple columns to work but I am not able to , kindly advise &lt;/P&gt;&lt;P&gt;another post I found on this forum is suggesting exactly the same way I am trying to create the table so what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="68489-capture.jpg" style="width: 1132px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16025i7FC1479A7B64332D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="68489-capture.jpg" alt="68489-capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 02:44:24 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2019-08-18T02:44:24Z</dc:date>
    <item>
      <title>mapping hbase to phoenix tables going wrong</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218951#M77312</link>
      <description>&lt;P&gt;i have read all the posts regarding this but still I am not able to get it right &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;see blow the first query is showing a new column with name "PK" and ACCT_NUM empty . &lt;/P&gt;&lt;P&gt;the second query showing ACCT_NUM empty and PUR_ID populated.   &lt;/P&gt;&lt;P&gt;how can I map all the columns of a column family to the phoenix table columns where the hbase row key becomes the primary key column of the phoenix table ?&lt;/P&gt;&lt;PRE&gt;hbase(main):001:0&amp;gt; scan 'PUR_ACCT_PHX2',{FILTER=&amp;gt;"(PrefixFilter('1001181'))"}
ROW                                    COLUMN+CELL
 1001181                               column=cf1:ACCTSTAT_ACCT_STATUS_CODE, timestamp=1523892576289, value=01
 1001181                               column=cf1:ACCTTYPE_ACCT_TYPE_CODE, timestamp=1523892576289, value=01
 1001181                               column=cf1:EMP_EMP_CODE, timestamp=1523892576289, value=9999
 1001181                               column=cf1:PLAZA_PLAZA_ID, timestamp=1523892576289, value=009500
 1001181                               column=cf1:PRODUCT_PUR_PRODUCT_CODE, timestamp=1523892576289, value=31
 1001181                               column=cf1:PROD_AMT, timestamp=1523892576289, value=10
 1001181                               column=cf1:PURSTAT_PUR_STATUS_CODE, timestamp=1523892576289, value=10
 1001181                               column=cf1:PUR_DET_ID, timestamp=1523892576289, value=661592624
 1001181                               column=cf1:PUR_ID, timestamp=1523892576289, value=752545412
 1001181                               column=cf1:PUR_TRANS_DATE, timestamp=1523892576289, value=2015-01-20 06:36:10.0
 1001181                               column=cf1:_0, timestamp=1523892576289, value=
1 row(s) in 0.2230 seconds





0: jdbc:phoenix:hadoop1:2181:/hbase-unsecure&amp;gt; CREATE table "PUR_ACCT_PHX2" (pk VARCHAR PRIMARY KEY, "cf1"."ACCT_NUM" varchar);
0: jdbc:phoenix:hadoop1:2181:/hbase-unsecure&amp;gt; select * from PUR_ACCT_PHX2 LIMIT 10;
+----------+-----------+
|    PK    | ACCT_NUM  |
+----------+-----------+
| 1001181  |           |
| 1002226  |           |
| 1002491  |           |

CREATE table "PUR_ACCT_PHX2" (pk VARCHAR PRIMARY KEY, "cf1"."ACCT_NUM" varchar, "cf1"."PUR_ID" varchar);
0: jdbc:phoenix:hadoop1:2181:/hbase-unsecure&amp;gt; select acct_num,pur_id from PUR_ACCT_PHX2 LIMIT 10;
+-----------+------------+
| ACCT_NUM  |   PUR_ID   |
+-----------+------------+
|           | 752545412  |
|           | 752541376  |
|           | 752539214  |

&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2018 22:47:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218951#M77312</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-04-16T22:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: mapping hbase to phoenix tables going wrong</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218952#M77313</link>
      <description>&lt;P&gt;&lt;A href="https://phoenix.apache.org/faq.html#How_I_map_Phoenix_table_to_an_existing_HBase_table" target="_blank"&gt;https://phoenix.apache.org/faq.html#How_I_map_Phoenix_table_to_an_existing_HBase_table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 22:54:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218952#M77313</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2018-04-16T22:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: mapping hbase to phoenix tables going wrong</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218953#M77314</link>
      <description>&lt;P&gt;hi Josh I did follow that link but its showing one column table example and I have multiple columns , I tried various options to make multiple columns to work but I am not able to , kindly advise &lt;/P&gt;&lt;P&gt;another post I found on this forum is suggesting exactly the same way I am trying to create the table so what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="68489-capture.jpg" style="width: 1132px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16025i7FC1479A7B64332D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="68489-capture.jpg" alt="68489-capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218953#M77314</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2019-08-18T02:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: mapping hbase to phoenix tables going wrong</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218954#M77315</link>
      <description>&lt;P&gt;The commands you shared in your initial question are not what that post says to do for a Phoenix table mapped to an HBase table. You said you ran `CREATE TABLE`, but that FAQ instructs you to use `CREATE VIEW`.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 02:31:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218954#M77315</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2018-04-17T02:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: mapping hbase to phoenix tables going wrong</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218955#M77316</link>
      <description>&lt;P&gt;ok thanks Josh I figured out my mistake .  I didn't realize that phoenix automatically find the primary key and I don't have to specify the primary key column name explicitly . &lt;/P&gt;&lt;P&gt;thanks for the guidance .&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 02:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mapping-hbase-to-phoenix-tables-going-wrong/m-p/218955#M77316</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-04-17T02:39:10Z</dc:date>
    </item>
  </channel>
</rss>

