|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
ReplicationZookeeperWrapper | This class serves as a helper for all things related to zookeeper in replication. |
This package is experimental quality software and is only meant to be a base for future developments. The current implementation offers the following features:
Before trying out replication, make sure to review the following requirements:
The following steps describe how to enable replication from a cluster to another. This must be done with both clusters offlined.
<property> <name>hbase.replication</name> <value>true</value> </property>
$HBASE_HOME/bin/hbase org.jruby.Main $HBASE_HOME/bin/replication/add_peer.tbThis will show you the help to setup the replication stream between both clusters. If both clusters use the same Zookeeper cluster, you have to use a different zookeeper.znode.parent since they can't write in the same folder.
Considering 1 rs, with ratio 0.1 Getting 1 rs from peer cluster # 0 Choosing peer 10.10.1.49:62020In this case it indicates that 1 region server from the slave cluster was chosen for replication.
hbase(main):001:0> zk 'set /zookeeper.znode.parent/replication/state false'Where you replace the znode parent with the one configured on your master cluster. Replication of already queued edits will still happen after you issued that command but new entries won't be. To start it back, simply replace "false" with "true" in the command.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |