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
regeamor
Silver ⭐️⭐️
February 25, 2022

part of Split or Merge (Verifiable by HMaster Logs)

 

what log and what in the log lets you know its part of a split or merge?

 

Translate
DianaTorres
Community Manager
Community Manager
February 25, 2022

@regeamor As this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator