一、文件解压
cd /opt/module/
tar -zxvf hbase-2.2.0-bin.tar.gz
二、修改启动变量
系统环境增加
vi /etc/profile
export Hbase_HOME=/opt/module/hbase-2.2.0 export PATH=$PATH:$Hbase_HOME/bin
保存系统环境变量:source /etc/profile
修改hbase变量
cd /opt/module/hbase-2.2.0/conf/
vi hbase-env.sh
三、配置文件
配置hbase-site.xml文件 vi hbase-site.xml
hbase.rootdir hdfs://hadoop100:9820/hbase hbase.cluster.distributed true hbase.zookeeper.quorum hadoop100 hbase.master.info.port 60010 hbase.master.maxclockskew 180000 Time difference of regionserver from master hbase.coprocessor.abortonerror false hbase.unsafe.stream.capability.enforce false
注意如果使用外部zk, hbase.cluster.distributed需要设置为true
文件regionservers配置:
master



