hbase 双机热备
在配置文件中添加下边内容
<property>
<name>hbase.replication</name>
<value>true</value>
</property>
在主服务上执行
create 'test', 'score', 'course'
disable 'test'
alter 'test', {NAME => 'score',REPLICATION_SCOPE => '1'},{NAME => 'course', REPLICATION_SCOPE => '1'}
enable 'test'
add_peer '8',CLUSTER_KEY => "192.168.11.202:2182:/hbase",enable_table_replication => "test"
在从服务上创建相同的数据库
create 'test', 'score', 'course'
模拟数据在主上put数据看从上是否同步
put 'test', 'catpr01','score:english', '11'
put 'test', 'catpr02','score:english', '12'
put 'test', 'catpr03','score:english', '13'