1.解压tar -zxvf hbase-**-bin.tar.gz
2.配置环境变量
3.vim conf/hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>hdfs://node01:8020/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>node01,node02,node03</value>
</property>
4.配置regionservers 主机名,vi conf/regionervers:
node02
node03
node04
5.配置backup-masters,vi conf/backup-masters:
node04
6.配置hbase-env.sh:
--配置JAVA_HOME
--配置HBASE_MANAGERS_ZK=false (关掉hbase自带的zookeeper)
7.将hadoop配置文件hdfs-site.xml拷贝到hbase的conf目录下
8.启动hbase:start-hbase.sh
hbase shell
查看http://node01:60010