赞
踩
1.配置 hbase-env.sh
export JAVA_HOME=/opt/jdk1.8.0_171
export HBASE_MANAGES_ZK=false
2.配置 hbase-site.sh
<property>
<name>hbase.rootdir</name>
<value>hdfs://zhangbk:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.master</name>
<value>60000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>zhangbk:2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/zookeeper-3.4.5-cdh5.3.6/dataDir</value>
</property>
3.配置 regionservers
zhangbk
4.配置zookeeper
vi zoo.cfg
dataDir=/opt/zookeeper-3.4.5-cdh5.3.6/zkData --需创建文件夹zkData
clientPort=2181
server.1=zhangbk:2888:3888
mkdir zkData
cd zkData
vi myid
1
启动zookeeper
bin/zkServer.sh start
HBase的Web界面,浏览器访问HBase文件系统:http://zhangbk:60010
先启动Hadoop,zookeeper,然后启动HBase
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。