(SQuirreL SQL Client client) Use Apache Phoenix to implement SQL operation HBase

I believe you are familiar with Apache Phoenix. It is the SQL driver of HBase. Phoenix enables Hbase to support access via JDBC, and converts your SQL queries into Hbase scans and corresponding actions.

 

compatibility:

  • Phoenix 2.x - HBase 0.94.x

  • Phoenix 3.x - HBase 0.94.x

  • Phoenix 4.x - HBase 0.98.1+

 

The installation of Hbase and Phoenix will not be elaborated here. They are very simple. Here is a brief introduction to how to connect to Phoenix through SQL Client after installation:

 

Step 1 : Download and install SQuirreL SQL Client:  http://www.squirrelsql.org/ 

Step 2 : Copy phoenix-{version}-client.jar and phoenix-core-{version}.jar to the lib folder in the SQuirreL installation directory. These two jars can be found in the phoenix installation directory.

Step 3 : Open SQuirreL, click Drivers, and create a new driver:

name: You can customize a name

Example URL: This is for you to use as a reminder when you create a new connection

Java Class Path: This needs to select the JAR uploaded before

Class Name: org.apache.phoenix.jdbc.PhoenixDriver



 

Step 4 : Create Aliases (that is, create a hbase connection):

Name: can be customized

Driver: Select the phoenix driver configured before

URL: The initial display here is the previously configured Example URL, and you can make specific modifications here. The'your-zookeeer-servers' here means to write the server names in your zookeeper cluster here.

 


 

After configuration, click Test to test the connection:



 

The page after confirming the connection:



 

OK, it means that you have connected to HBase. Now you can try to manipulate HBase data by writing SQL.

https://www.ktanx.com/blog/p/33

You can also refer to:

1. How to install and configure SQuirrel sql to connect to HBase database

https://blog.csdn.net/fwj_ntu/article/details/79785671

2, Squirrel installation (Phoneix visualization tool on windows)

https://www.cnblogs.com/zlslch/p/7096457.html

Guess you like

Origin blog.csdn.net/JHON07/article/details/90548273
Recommended