Skip to main content
ASIF123
Gold ⭐️
December 18, 2020
Solved

Hbase - Orphan Regions on Filesystem shows (967 regions in set)

Hi ,

After accessing the hbase master ui link in production , under hbck we see there are 967 regions under ophan regions in filesystem.

 

Can someone please help us as to how can we clear them.

 

Thanks.

@gsharma 

smdas
smdasAnswer
Gold ⭐️⭐️
December 18, 2020

Hello @ASIF123 

 

Thanks for using Cloudera Community. For the Orphan Region, We need to confirm the Source.

 

  • Will recommend checking the Region IDs in "hbase:meta" Table & HBase Data Directory.
  • If the Region IDs aren't present in "hbase:meta" Table with only Region Directory present, Check if the Region Directory has any StoreFiles or "recovered.edits" file.
  • If no StoreFiles or "recovered.edits" files are present, It's likely the Regions are part of Split or Merge (Verifiable by HMaster Logs) & we can safely sideline the Region Directories. 
  • If no StoreFiles are present yet "recovered.edits" files are present, Again check if the Regions are part of Split or Merge (Verifiable by HMaster Logs), Use WALPlayer to replay the "recovered.edits" files to be on safer side & then, sideline the Region Directories.

 

- Smarak

4 replies

smdas
Gold ⭐️⭐️
smdasAnswer
Gold ⭐️⭐️
December 18, 2020

Hello @ASIF123 

 

Thanks for using Cloudera Community. For the Orphan Region, We need to confirm the Source.

 

  • Will recommend checking the Region IDs in "hbase:meta" Table & HBase Data Directory.
  • If the Region IDs aren't present in "hbase:meta" Table with only Region Directory present, Check if the Region Directory has any StoreFiles or "recovered.edits" file.
  • If no StoreFiles or "recovered.edits" files are present, It's likely the Regions are part of Split or Merge (Verifiable by HMaster Logs) & we can safely sideline the Region Directories. 
  • If no StoreFiles are present yet "recovered.edits" files are present, Again check if the Regions are part of Split or Merge (Verifiable by HMaster Logs), Use WALPlayer to replay the "recovered.edits" files to be on safer side & then, sideline the Region Directories.

 

- Smarak

Translate
smdas
Gold ⭐️⭐️
Gold ⭐️⭐️
January 11, 2021

Hello @ASIF123 

 

Checking whether the concerned issue posted by your team has been resolved. If Yes, Kindly mark the Post as Solved. If No, Kindly review our Post dated 12/18 & share the outcome of the Action Plan shared.

 

- Smarak

Translate