1.配置hbase-site.xml:
[mw_shl_code=xml,true]<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://host01.byzoro.com:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>host02.byzoro.com,host03.byzoro.com,host04.byzoro.com</value>
</property>
</configuration>[/mw_shl_code]
2. 配置hbase-env.sh:
设置export HBASE_MANAGES_ZK=false
3. 配置regionservers:
host02.byzoro.com
host03.byzoro.com
host04.byzoro.com
4. 启动hbase:
bin/start-hbase.sh
|