Skip to main content
added 186 characters in body
Source Link
Navarro
  • 237
  • 1
  • 10

I have two HDFS clusters with HBase on top of it, cluster_1 and cluster_2.

On cluster_1 (All nodes) I have edited the hbase-site.xml adding this:

<property> <name>hbase.replication</name> <value>true</value> </property> 

And then in cluster_1 I altered the table foo column family bar like this:

disable 'foo' alter 'foo', NAME => 'bar', REPLICATION_SCOPE => 'my_peer' enable 'foo' 

Then created the peer my_peer like this:

add_peer 'my_peer', 'cluster_2-zookeeper:2181:/my_hbase_znode' start_replication 

No data from foo is replicated in foo table in cluster_2.

Am I missing anything? The zk_dump in cluster_1 says that replication is enabled with peer my_peer.

EDIT-1

After adding the hbase.replication=true in cluster_2, I have been able to replicate tables where I am manually putting data with HBase shell. No luck with the others.

I have two HDFS clusters with HBase on top of it, cluster_1 and cluster_2.

On cluster_1 (All nodes) I have edited the hbase-site.xml adding this:

<property> <name>hbase.replication</name> <value>true</value> </property> 

And then in cluster_1 I altered the table foo column family bar like this:

disable 'foo' alter 'foo', NAME => 'bar', REPLICATION_SCOPE => 'my_peer' enable 'foo' 

Then created the peer my_peer like this:

add_peer 'my_peer', 'cluster_2-zookeeper:2181:/my_hbase_znode' start_replication 

No data from foo is replicated in foo table in cluster_2.

Am I missing anything? The zk_dump in cluster_1 says that replication is enabled with peer my_peer.

I have two HDFS clusters with HBase on top of it, cluster_1 and cluster_2.

On cluster_1 (All nodes) I have edited the hbase-site.xml adding this:

<property> <name>hbase.replication</name> <value>true</value> </property> 

And then in cluster_1 I altered the table foo column family bar like this:

disable 'foo' alter 'foo', NAME => 'bar', REPLICATION_SCOPE => 'my_peer' enable 'foo' 

Then created the peer my_peer like this:

add_peer 'my_peer', 'cluster_2-zookeeper:2181:/my_hbase_znode' start_replication 

No data from foo is replicated in foo table in cluster_2.

Am I missing anything? The zk_dump in cluster_1 says that replication is enabled with peer my_peer.

EDIT-1

After adding the hbase.replication=true in cluster_2, I have been able to replicate tables where I am manually putting data with HBase shell. No luck with the others.

Source Link
Navarro
  • 237
  • 1
  • 10

HBase replication not working

I have two HDFS clusters with HBase on top of it, cluster_1 and cluster_2.

On cluster_1 (All nodes) I have edited the hbase-site.xml adding this:

<property> <name>hbase.replication</name> <value>true</value> </property> 

And then in cluster_1 I altered the table foo column family bar like this:

disable 'foo' alter 'foo', NAME => 'bar', REPLICATION_SCOPE => 'my_peer' enable 'foo' 

Then created the peer my_peer like this:

add_peer 'my_peer', 'cluster_2-zookeeper:2181:/my_hbase_znode' start_replication 

No data from foo is replicated in foo table in cluster_2.

Am I missing anything? The zk_dump in cluster_1 says that replication is enabled with peer my_peer.