1.前提启动外部的zookeeper集群,和hadoop集群
2.修改hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://nahadoop:8020/hbase</value>
<!--这个是/usr/hadoop-2.5.1/etc/hadoop下core-site.xml配置文件的fs.defaultFS配置路径-->
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<!--打开分布式-->
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.108.11,192.168.108.14,192.168.108.15</value>
<!--zookeeper分布式集群-->
</property>
</configuration>
3.配置regionservers
[root@node1 conf]# vi regionservers
2.修改hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://nahadoop:8020/hbase</value>
<!--这个是/usr/hadoop-2.5.1/etc/hadoop下core-site.xml配置文件的fs.defaultFS配置路径-->
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<!--打开分布式-->
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.108.11,192.168.108.14,192.168.108.15</value>
<!--zookeeper分布式集群-->
</property>
</configuration>
3.配置regionservers
[root@node1 conf]# vi regionservers