1.先解壓,並重命名java
tar zxvf hbase-1.2.0-cdh5.14.2.tar.gz mv hbase-1.2.0-cdh5.14.2 /opt/bigdata/hbase120
2.配置 hbase-env.shshell
cd /opt/bigdata/hbase120/conf
vi hbase-env.sh
3.配置 hbase-site.xml分佈式
vi hbase-site.xml
<property> <name>hbase.rootdir</name> <value>hdfs://169.254.211.100:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/opt/zkdir</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> </property>
修改環境變量:ide
vi /etc/profile source /etc/profile
啓動code
start-hbase.sh hbase shell stop-hbase.sh