Apache Phoenix on Docker
A Docker image to quick start Apache Phoenix on Apache HBase
to provide an SQL interface. This image uses the Phoenix Avatica queryserver to allow thin clients to communicate via REST requests over wire protocol.
Apache Phoenix is a SQL skin over HBase delivered as a client-embedded JDBC driver targeting low latency queries over HBase data. Apache Phoenix takes your SQL query, compiles it into a series of HBase scans, and orchestrates the running of those scans to produce regular JDBC result sets. The table metadata is stored in an HBase table and versioned, such that snapshot queries over prior versions will automatically use the correct schema. Direct use of the HBase API, along with coprocessors and custom filters, results in performance on the order of milliseconds for small queries, or seconds for tens of millions of rows.
Apache Hadoop - 2.7.3
Apache Zookeeper - 3.4.10
Apache HBase - 1.2.5
Apache Phoenix - 4.10.0
The queryserver can be accessed via the host ip and the port 8765.
docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix
docker run -d --name phoenix -p 8765:8765 avapno/apache-phoenix
docker exec -it phoenix -sqlline