Docker version for Hbase 1.3.6 cluster using Hadoop 2.7.4
This version includes Phoenix 4.14.3 connected to cluster through Zookeeper 3.4.10
The Phoenix queryserver allows to query HBase using the python-phoenixdb driver to easily send SQL queries and fetch data to the python side.
This cluster uses HDFS to store data in a distributed environment.
-
Hbase Architecture
-
Hbase reference
-
Python Phoenix Driver
- Hbase Region Server Image
- Hbase Master Server Image
- Docker Apache Phoenix Repo (To use with Python)
- Zookeer Docker Image configuration flags
This configuration has no support for Phoenix
Run the build command to prepare the standalone image:
make standalone
To run standalone hbase:
docker-compose -f docker-compose-standalone.yml up -d
The deployment is the same as in quickstart HBase documentation. Can be used for testing/development, connected to Hadoop cluster.
Steps to run a local distributed Hbase cluster with a Phoenix service
Run the build command to prepare cluster images:
make build
or create them separately:
Build the base version of Hbase 1.3.6
This image will serve to launch hbase-master and hbase-regionserver containers
cd base
docker build -t hbase-1.3.6 .
Once the base HBase image is built, proceed to create master and regionserver images:
cd hmaster
docker build -t hbase-master-1.3.6 .
cd ../hregionserver
docker build -t hbase-regionserver-1.3.6 .
Build the Apache Phoenix image for the queryserver
cd phoenix
docker build -t phoenix-4.14.3 .
docker-compose -f docker-compose-distributed-local-with-phoenix.yml up -d
This deployment will start Zookeeper, HMaster and HRegionserver in separate containers.
To run distributed hbase on docker swarm see this doc
Using Zeppelin 0.8.0
Start Zeppelin and create a Phoenix interpreter pointing to the Phoenix container.
Phoenix Interpreter config:
Reference:
In case to find connection issues among your instances, have a look at:
- https://community.cloudera.com/t5/Support-Questions/Phoenix-and-HBase-connection/td-p/183238
- http://apache-phoenix-user-list.1124778.n5.nabble.com/Re-error-when-using-apache-phoenix-4-14-0-HBase-1-2-bin-with-hbase-1-2-6-td4698.html
- https://issues.apache.org/jira/browse/PHOENIX-1473
- https://community.cloudera.com/t5/Support-Questions/Hbase-Connectivity-Fails/td-p/95088