Member since
08-21-2014
23
Posts
14
Kudos Received
3
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2172 | 02-23-2017 02:51 PM | |
1798 | 02-21-2016 06:09 PM | |
12280 | 08-21-2014 01:51 PM |
01-29-2016
11:51 PM
My connect string is show at the top of my original post. I'm able to connect fine.
... View more
01-29-2016
11:43 PM
What is the difference between the thick and thin driver in terms of what I'm trying to do? When I use phoenix-sqlline-thin it shows the table now which is puzzling to me. Why the difference in behavior?
... View more
01-29-2016
11:31 PM
While I appreciate your sharing the link, it doesn't cover anything related to my question.
... View more
01-29-2016
11:17 PM
That is how I'm connecting. I have updated my original question to show that. I can connect fine.
... View more
01-29-2016
11:06 PM
Yes, I'm suing Phoenix Query Server. /usr/bin/phoenix-sqlline is a
symbolic link to /usr/hdp/current/phoenix-client/bin/sqlline.py. That is
what I'm using.
... View more
01-29-2016
10:56 PM
4 Kudos
I create a Phoenix table using the phoenix-sqlline client via: create table mytable (id varchar not null primary key, mycolumn varchar); Here is the pig script I used to attempt to load the data from Hive/HCatalog to Phoenix. REGISTER /usr/hdp/2.3.2.0-2950/phoenix/phoenix-4.4.0.2.3.2.0-2950-client.jar
A = LOAD 'default.mytable' USING org.apache.hive.hcatalog.pig.HCatLoader();
STORE A INTO 'hbase://mytable' using org.apache.phoenix.pig.PhoenixHBaseStorage('hbaseserver', '-batchSize 1000'); The pig script is run via: pig -x tez -useHCatalog mypigscript.pig I no longer get a "Could not resolve ..." error. However, I'm running into another error where the table in Phoenix doesn't exist.
... View more
01-29-2016
10:46 PM
I'm connecting to Phoenix Query Server via the following: /usr/hdp/current/phoenix-client/bin/sqlline.py hbasemaster:2181:/hbase-unsecure I'm able successfully connect. I then create a table using: create table mytable (id varchar not null primary key, mycolumn varchar); That command seems to run successfully. However, when I try to verify the table exists via: !tables I don't see my table listed. When I try to use sql as a verification via: select * from mytable; I get a "TableNotFoundException". If I try to create the table again, I get an error that the table already exists. If I look a the HBase Master UI, I can see the table exists in HBase. I'm confused. What am I missing here? I'm running HDP 2.3.2
... View more
Labels:
- Labels:
-
Apache Phoenix
01-29-2016
10:22 PM
Thank you that is what I was looking for. It wasn't clear to me which jar file I needed to register.
... View more
01-29-2016
09:58 PM
2 Kudos
What jar(s) do I need to register or which command line options do I need to pass to Pig so that Phoenix + Pig integration works? I'm using HDP 2.3.2. I've created a table in Phoenix and I would like to load sample data into a Phoenix table from a Hive table via a Pig script. When I try to store data into Phoenix I get "Could not resolve org.apache.phoenix.pig.PhoenixHBaseStorage using imports ...".
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache Phoenix
-
Apache Pig
12-22-2015
10:27 PM
I think this is probably the better approach. We were initially using Tez for the better performance over M/R. However with our cluster easily throttling Elasticsearch, it seems reasonable to revert back to M/R and tweak settings that are easier to control. Thank you.
... View more
- « Previous
-
- 1
- 2
- Next »