- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Unable to map numeric fields from Hbase table to Phoenix
- Labels:
-
Apache HBase
-
Apache Phoenix
Created ‎08-08-2016 04:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have Hbase table with integer field.
When I map Phoenix table on to this Hbase table, integer field show values like : -213456236
E.g.
hbase> create 'emp','f1' hbase> put 'emp',1,'f1:eid',1001
Corresponding Phoenix table:
Create table "emp" (pk integer primary key, "f1"."eid" integer);
When I try to select from emp table, I get large number in eid field:
select "eid" from "emp"; => 299345678
This is happening for float values also. Whereas varchar values get populated correctly.
What wrong am I doing? Am I wrongly mapping the Hbase table to phoenix? I have followed steps from FAQ page.
I have read below question, but unable to get any clue.
Please help @Josh Elser
Created ‎08-12-2016 01:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm planning to use approach mentioned below using phoenix-pig integration.
https://community.hortonworks.com/questions/12538/phoenix-storage-in-pig.html
Created ‎08-17-2016 04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. We are using HDP2.3 and Phoenix 4.4. Hence I'm planning to use pig integration mentioned below for Hive to Phoenix table transfer.
Created ‎08-12-2016 01:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm planning to use approach mentioned below using phoenix-pig integration.
https://community.hortonworks.com/questions/12538/phoenix-storage-in-pig.html
Created ‎04-24-2017 07:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
idea work-around if you don't have minimal versions of
- Phoenix 4.8.0+
- Hive 1.2.1+
to use Phoenix Storage Handler for Hive.
Phoenix-Pig Integration worked for me.. thank you @Saurabh Rathi

- « Previous
-
- 1
- 2
- Next »