Regions in both clusters need not have to match, each server independently manages its regions depending on split, compactions etc number of regions in both servers won't be same. If you want to verify both servers are replicated correctly you have to run below command
sudo -u hbase hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication peer1 table1 On Thu, Dec 28, 2017 at 5:00 AM, Sawant, Chandramohan < [email protected]> wrote: > Hi All, > > Before enabling replication, snapshot of PROD table taken and restored in > COB and then replication enabled, region count was matching at that time. > However after few days, COB showing extra regions than in prod where > replication enabled one way from PROD to COB. > What is the reason of having mismatch in the number of regions between > prod and cob ? > > COB - > Namespace Table Name Online Regions Offline Regions Failed > Regions Split Regions Other Regions > default TABLE1 4 > 0 0 3 > 0 > default TABLE2 10 > 0 0 8 > 0 > > PROD - > Namespace Table Name Online Regions Offline Regions Failed > Regions Split Regions Other Regions > default TABLE1 1 > 0 0 0 > 0 > default TABLE2 4 > 0 0 2 > 0 > > hbase:meta table in COB shows the few regions of above tables are offline > with offline attribute true, however it shows different status on HBase UI, > please see above. > > Regards, > CM > +1 201 763 1656 > >
