You are on page 1of 5

Phoenix-4.7.

0
4.7.0 Version Installation Steps
1. Download the Phoenix-4.7.0
Phoenix tar file from Apache Mirrors
Mirrors.
2. Follow the below screen shot steps.

3. Open the ~/.bashrc file and update the PHOENIX_HOME


information.
export PHOENIX_HOME=/home/orienit/work/phoenix-4.7.0
PHOENIX_HOME=/home/orienit/work/phoenix 4.7.0-HBase-1.1-bin
export PATH=$PHOENIX_HOME/bin:$PATH

4. To integrate Phoenix with Hbase


H we need to add few jars from
$PHOENIX_HOME folder to $HBASE_HOME/lib folder.

cp $PHOENIX_HOME/phoenix-4.7.0-HBase-1.1-server.jar
$PHOENIX_HOME/phoenix server.jar $HBASE_HOME/lib
cp $PHOENIX_HOME/phoenix-4.7.0-HBase-1.1-client.jar
$PHOENIX_HOME/phoenix client.jar $HBASE_HOME/lib

Mr. Kalyan, Apache Contributor, 6+ years of Big Data Exp, IIT Kharagpur, Gold Medalist
Best Spark & Hadoop Training in Hyderabad,
Hyderabad ORIEN IT @ 040-65142345,
65142345, 9703202345
5. After copying above two jars then we need to restart the hba
hbase ( this
operation is mandatory)

stop-hbase.sh

start-hbase.sh

6. Execute the below command to work with sample phoenix example


example.

psql.py localhost $PHOENIX_HOME/examples/WEB_STAT.sql


$PHOENIX_HOME/examples/WEB_STAT.csv
$PHOENIX_HOME/examples/WEB_STAT_QUERIES.sql

Wait
ait for this command to complete the action,
action, follow the below screen
shot

Mr. Kalyan, Apache Contributor, 6+ years of Big Data Exp, IIT Kharagpur, Gold Medalist
Best Spark & Hadoop Training in Hyderabad,
Hyderabad ORIEN IT @ 040-65142345,
65142345, 9703202345
Mr. Kalyan, Apache Contributor, 6+ years of Big Data Exp, IIT Kharagpur, Gold Medalist
Best Spark & Hadoop Training in Hyderabad,
Hyderabad ORIEN IT @ 040-65142345,
65142345, 9703202345
7. To connect to Phoenix execute the below command
“sqlline.py localhost””

Mr. Kalyan, Apache Contributor, 6+ years of Big Data Exp, IIT Kharagpur, Gold Medalist
Best Spark & Hadoop Training in Hyderabad,
Hyderabad ORIEN IT @ 040-65142345,
65142345, 9703202345
8. Show the tables in phoenix execute the below command
command.
“!tables”

Mr. Kalyan, Apache Contributor, 6+ years of Big Data Exp, IIT Kharagpur, Gold Medalist
Best Spark & Hadoop Training in Hyderabad,
Hyderabad ORIEN IT @ 040-65142345,
65142345, 9703202345

You might also like