Node Name | Master | ZooKeeper | RegionServer |
---|---|---|---|
node1 | yes | yes | no |
node2 | backup | yes | yes |
node3 | no | yes | yes |
1.配置conf/regionservers
1 | node2 |
2.创建conf/backup-masters
1 | node2 |
3.配置 hbase-site.xml
1 | <property> |
4.将配置文件拷贝到node2、node3中
1 | scp /csh/software/hbase-1.1.4/conf/* root@node2:/csh/software/hbase-1.1.4/conf/ |
5.启动HBase(在node1启动)
1 | ./start-hbase.sh |
6.jps查看结果
1 | //node1 |