Based tairangroup/hadoop:latest
-
SSH server & client ( Port: 22 User: root Password: 123456 )
-
Hadoop 2.7.x
-
HBase 1.3.x
-
Phoenix 4.13.x
Start ZK:
docker run --name dmp_zookeeper -p 2181:2181 -d zookeeper
Start HBase:
docker run --name hbase -h hbase -P -p 8765:8765 -e KEEP=true --link dmp_zookeeper:zookeeper -d tairangroup/hbase
Operation:
Hadoop Home:/opt/hbase/
example:
> hbase shell
create 'test', 'cf'
list 'test'
put 'test', 'row1', 'cf:a', 'value1'
put 'test', 'row2', 'cf:b', 'value2'
put 'test', 'row3', 'cf:c', 'value3'
scan 'test'
get 'test', 'row1'
disable 'test'
drop 'test'
> /opt/phoenix/bin/sqlline.py zookeeper:2181
!tables
> /opt/phoenix/bin/sqlline.py zookeeper:2181 /opt/phoenix/examples/STOCK_SYMBOL.sql
select * from stock_symbol;
> /opt/phoenix/bin/sqlline-thin.py http://localhost:8765
select * from system.catalog;