系统环境
OS:10.12.5 (16F73)
java version “1.8.0_121”
Hadoop 2.7.5
Hive 2.3.2
mysql Ver 14.14 Distrib 5.7.21
Hbase 1.2.6
hbase安装
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8001/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/Users/soft/hbase-1.2.6/data</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
-
环境变量
export HBASE_HOME=/Users/gongxinwen/soft/hbase-1.2.6
export PATH=$PATH:$HBASE_HOME/bin -
启动&验证
./start-hbase.sh
./hbase shell 启动hbase客户端 -
命令
list
- 测试
scan ‘tb_word’ - 线上
scan ‘tb_user_flink_test’;
scan ‘tb_user_flink_test’, FILTER => “PrefixFilter (‘33816’)”