• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Apache Phoenix (SQL on HBase)

By Abhishek Ghosh December 26, 2018 9:52 am Updated on December 26, 2018

How To Install Apache Phoenix (SQL on HBase)

Advertisement

We talked about Apache Phoenix in our previous guides and articles such as How To Install Apache HBase and List of Apache Projects For Big Data. Apache Phoenix is a massively parallel, relational database engine supporting OLTP for Hadoop using Apache HBase as store. Phoenix provides a JDBC driver that cleverly hides the noSQL store in front enabling the users to create, delete, and alter SQL tables, views, insert and delete rows and query data through SQL. Apache Phoenix started as an internal project by the company salesforce out of a need to support a higher level, SQL language. Apache Phoenix is included in the Hortonworks distribution for HDP 2.1 and above, available as part of Cloudera labs, and is part of the Hadoop ecosystem.

How To Install Apache Phoenix

If we want to install Apache Phoenix, we must have install Hadoop and Hbase first. Installing Apache Phoenix itself is easy. Official website of Apache Phoenix :

Vim
1
2
3
4
5
#
http://phoenix.apache.org/index.html
#
https://github.com/apache/phoenix
#

Apache Phoenix have different versions with version compatibility with HBase, like :

Advertisement

---

Phoenix 2.x – HBase 0.94.x
Phoenix 3.x – HBase 0.94.x
Phoenix 4.x – HBase 0.98.1+
…
Phoenix 5.x – HBase 2.1+

At this moment, Phoenix 5.x is the latest version.

 

How To Install Apache Phoenix

 

We can donload the binary file from here :

Vim
1
2
3
#
http://www.eu.apache.org/dist/phoenix/
#

This is the exact URL to get the tar ball :

Vim
1
2
3
#
http://www.eu.apache.org/dist/phoenix/apache-phoenix-5.0.0-HBase-2.0/bin/
#

We will simply wget it :

Vim
1
wget http://www.eu.apache.org/dist/phoenix/apache-phoenix-5.0.0-HBase-2.0/bin/apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz

Then just extract it with this command :

Vim
1
2
3
tar -xzvf apache-phoenix-5.0.0-HBase-2.0-bin.tar.gz
 
ls -al

Thereafter, we can move it into /usr/lib/phoenix directory :

Vim
1
sudo mv apache-phoenix-5.0.0-HBase-2.0-bin /usr/lib/phoenix

We need to set the environment variable in ~/.bashrc file, open it with nano :

Vim
1
nano ~/.bashrc

Add these lines at the bottom of that file :

Vim
1
2
3
## added for Apache Phonenix
export PHOENIX_HOME=/usr/lib/phoenix
export PATH=$PATH:$PHOENIX_HOME/bin

Save the file and reload environment :

Vim
1
source ~/.bashrc

Additionally, your installation of Hadoop, HBase should have the usual environment variable in ~/.bashrc file, like :

Vim
1
2
export HADOOP_HOME=/path/to/hadoop-1.2.1
export HBASE_HOME=/path/to/hbase-0.94.15

We have to copy server.jar, client.jar jar files (real names will include Phoenix & HBase versions) into $HBASE_HOME/lib directory. Those files located in $PHOENIX_HOME directory i.e. /usr/lib/phoenix.

Earlier we discussed about sqlline. We can run this command to check installation :

Vim
1
sqlline.py localhost

That ends this guide. Rest, you can read from the official website :

Vim
1
https://phoenix.apache.org/Phoenix-in-15-minutes-or-less.html

Tagged With apache phoenix insert multiple rows , apache phoenix query server standalone windows , apache phownix tar file , hbase phoenix spark 2 , how to install phoenix on hbase , using phoenix with hbase , скачать apache url 10 temp
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Apache Phoenix (SQL on HBase)

  • How To Install Apache HBase : Ubuntu Single Cloud Server Instance

    Here is Step By Step Guide On How To Install Apache HBase On Ubuntu Single Cloud Server Instance. Hbase is column-oriented distributed datastore,

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install Apache Hadoop on Ubuntu on Single Cloud Server Instance

    Here is How Install Apache Hadoop on Ubuntu on Single Cloud Server Instance in Stand-Alone Mode With Minimum System Requirement and Commands.

  • Apache Cassandra Versus Apache Phoenix

    In our previous discussions, we have compared Apache Cassandra with Apache Hbase and Apache Cassandra with MongoDB. In one of those articles, we already mentioned that Apache Cassandra is more appropriate to compare with Apache Phoenix than Apache HBase. Also, it will make understand why commonly HBase is compared with Apache Cassandra, not Apache Phoenix. […]

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy