日期:2014-05-16  浏览次数:20361 次

HBase 应用平台 Replication 功能

一、稳定性测试

二、功能扩展

? ? ? ?1.ReplicationAdmin

? ? ? ?org.apache.hadoop.hbase.client.replication.ReplicationAdmin

? ? ? ?This class provides the administrative interface to HBase cluster?replication.

? ? ? ?2.表启用复制,范围是表级别。

? ? ? ?主从集群需要同时启用或禁用

? ? ? ?2.1.原因

? ? ? ? ? ? ?主集群挂了,表的描述信息就无法获取,从集群恢复时就不知道哪些表已经启用,所以需要同时启用,保证两个集群一致;

? ? ? ? ? ? ?从集群有很多个表(100以上)需要启用,启用处理时间就会很长,从而影响从集群恢复启动时间。

? ? ? ?2.2.参考

? ? ? ? ? ? ?/hbase-0.94.6-cdh4.3.2/bin/replication/copy_tables_desc.rb

? ? ? ? ? ? ?Script to recreate all tables from one cluster to another.To see usage for this script, run:

     ${HBASE_HOME}/bin/hbase org.jruby.Main copy_tables_desc.rb

? ? ? ?2.3.实现

? ? ? ? ? ? ?2.3.1.HBase Shell