Wednesday, September 1, 2021

Migration of HDInsight HBase Cluster with Replication Enable

This article explain how to migrate the Active Active Replication HBase cluster.

Understanding the Use Case:
This use case explain how to migrate the HBase Replication cluster. Let Say we have two cluster Cluster A and Cluster B and both are peer with each other for Active Active replication. Now we want to Migrate the Cluster B to New Version let say New Cluster B. Also we need to make sure that if any point of time the Migration Fails we can point back to Cluster B.    

somnathghosh_58-1630481225222.png

 

 


Below are the Steps for the migration.

Step 1: Cluster A and Cluster B already Exist with Active Active Replication Enable. Please follow the below link for more information on how to setup the replication

https://docs.microsoft.com/en-us/azure/hdinsight/hbase/apache-hbase-replication

Step 3: Create New Migration Cluster B

somnathghosh_46-1630479995833.png


Step 4:
From Cluster A check existing the peer it will point to Cluster B

somnathghosh_47-1630479995835.png

Step 5: From Cluster A create Peer “2” to new ClusterB and Disable it.

somnathghosh_48-1630479995836.png


Step 6:
From Cluster A Disable peer “1” which is pointing to Cluster B

somnathghosh_49-1630479995838.png

 

Step 7: Load some Data to Cluster A.

somnathghosh_50-1630479995841.png

 

Step 8:  Check the Replication Status  from Cluster A Data is waiting to write in Peer 1 and Peer 2

somnathghosh_51-1630479995853.png

Step 9: Follow the documentation to Migrate Cluster B to new Cluster B

https://docs.microsoft.com/en-us/azure/hdinsight/hbase/apache-hbase-migrate-new-version

Step 10: Verify If the migration is successful and able to access the table.


Step 11:
From Cluster A now  Enable Peer “2” which is pointing to new Cluster B.

somnathghosh_52-1630479995853.png

 

Step 12: Verify Data is replicating to New Cluster B

somnathghosh_53-1630479995859.png

 

Step 13: Check from new Cluster B new Data which we inserted while migration is available.

somnathghosh_54-1630479995863.png


Step 14:
Create Peer from New Cluster B to Cluster A for Active Active Replication

somnathghosh_55-1630479995864.png


Step 15
: Verify the Data is replicating to Cluster A by Inserting some Data in New Cluster B and validating the data is available in Cluster A.

Step 16: If all the validation looks good and data’s are getting replicated to new Cluster B then  Drop “peer1” From Cluster A.

somnathghosh_56-1630479995867.png

 

Step17: Destroy old Cluster B.

 

References:

https://docs.microsoft.com/en-us/azure/hdinsight/hbase/apache-hbase-replication

https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters

https://docs.microsoft.com/en-us/azure/hdinsight/hbase/apache-hbase-migrate-new-version

 

Posted at https://sl.advdat.com/3jA3ZmM