Apache phoenix is installed under /opt/mas/phoenix/
Launch Phoenix CLI with zookeeper
bin/sqlline.py localhost:2181
OR
bin/sqlline.py xvzw160.xdev.motive.com,xvzw161.xdev.motive.com,xvzw162.xdev.motive.com
Create Table:
CREATE TABLE IF NOT EXISTS STOCK_SYMBOL (SYMBOL VARCHAR NOT NULL PRIMARY KEY, COMPANY VARCHAR);
List tables in Phoenix
select DISTINCT("TABLE_NAME") from SYSTEM.CATALOG;
Insert Data into table.
UPSERT INTO STOCK_SYMBOL VALUES ('CRM','SalesForce.com');
Bulkupload data to table STOCK_SYMBOL:
bin/sqlline.py -t STOCK_SYMBOL xvzw160.xdev.motive.com,xvzw161.xdev.motive.com,xvzw162.xdev.motive.com /opt/mas/phoenix/examples/STOCK_SYMBOL.csv
To bulk upload data to Phoenix:
./psql.py xvzw160.xdev.motive.com,xvzw161.xdev.motive.com,xvzw162.xdev.motive.com /opt/mas/phoenix/examples/WEB_STAT.sql /opt/mas/phoenix/examples/WEB_STAT.csv /opt/mas/phoenix/examples/WEB_STAT_QUERIES.sql
./sqlline.py xvzw160.xdev.motive.com,xvzw161.xdev.motive.com,xvzw162.xdev.motive.com
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteBig Data Hadoop training in electronic city
ReplyDeleteHi, Amazing your article you know I'm too lazy to sign up an account just for comment your article. it's really good and helping dude. thanks. Hadoop Training Institute in Delhi
You are doing a great job by sharing useful information about Hadoop course. It is one of the post to read and improve my knowledge in Hadoop.You can check our Mapr Installation Steps,for more information about Mapr Installation guide.
ReplyDeleteVery nice post.
ReplyDeletekeep updating more blogs.
We are offering some software technologies
big data and Hadoop training
hadoop administration course
best big data course
Hadoop admin online course
Useful blog about Apache Phoenix.it is very easy for me to understand. . I think you made some good points in future also. Here also how Information Technology Company in Virginia introducing the new way of study.
ReplyDeleteaws inspector
ReplyDeleteopenshift vs kubernetes
azure data lake
arm templates
azure traffic manager
azure bastion
aws interview questions
ReplyDeleteaws solutions architect interview questions and answers
data science interview questions
azure solution architect interview questions
power bi interview questions
azure data factory interview questions
ebs on oci free class
ReplyDeleteazure sa exam questions
aws sa free training
aws sa interview questions
aws solutions architect exam questions
aws sa free class
da-100 exam questions
da100 free class
docker free training
cka free training