Skip to main content
sfdragonstorm
Bronze III
October 30, 2019
Solved

Hbase Region Name

I'm looking at the Hbase Web UI and when I click on one of the region servers listed under base stats I see a list of region names.

 

Example:

 

img,0006943d-20150504220458043384375D00000002-00093,1527295748538.7b45a9f6f5584fc50b3152d41a5323a2.

 

My question is, what part of this is the actual region name.  My understanding is, img is the table name, 0006943d-20150504220458043384375D00000002-00093 is the beginning rowkey.  Is 1527295748538.7b45a9f6f5584fc50b3152d41a5323a2. the actual region name? 

smdas
smdasAnswer
Gold ⭐️⭐️
November 21, 2022

Hello @sfdragonstorm & @pacman 

 

In the Region Name "img,0006943d-20150504220458043384375D00000002-00093,1527295748538.7b45a9f6f5584fc50b3152d41a5323a2.", the Table Name is "img", StartKey is "0006943d-20150504220458043384375D00000002-00093", Timestamp is "1527295748538" & "7b45a9f6f5584fc50b3152d41a5323a2" is the Region ID. 

 

Under HBase Data Directory, each Table Directory would have Region-Level Directories as identified by Region ID ("7b45a9f6f5584fc50b3152d41a5323a2" in Example). The Region ID is an MD5 encoded string for the Region Name & generated by HBase itself. Refer [1], if your Team wish to review the same. 

 

Regards, Smarak

 

[1] https://hbase.apache.org/apidocs/src-html/org/apache/hadoop/hbase/client/RegionInfo.html#line.164

 

4 replies

CLDR
Gold ⭐️
Gold ⭐️
October 31, 2019

Hi ,

 

       We say the entire entry as region name.

       The region name is formed by the table name, the start key, the timestamp, and the encoded region name.

 

       table name :- img

       start key     :-  0006943d-20150504220458043384375D00000002-00093

       Timestamp :-  1527295748538

       Encoded Region name :- 7b45a9f6f5584fc50b3152d41a5323a2

 

    Please let me know if you have any doubts.

 

Regards,

Ganesh

Translate
pacman
Gold ⭐️
November 21, 2022

@CLDR what is this encoded region name, how is it formed?

Translate
VidyaSargur
Community Manager
Community Manager
November 21, 2022

@pacman, 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.

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
smdas
Gold ⭐️⭐️
smdasAnswer
Gold ⭐️⭐️
November 21, 2022

Hello @sfdragonstorm & @pacman 

 

In the Region Name "img,0006943d-20150504220458043384375D00000002-00093,1527295748538.7b45a9f6f5584fc50b3152d41a5323a2.", the Table Name is "img", StartKey is "0006943d-20150504220458043384375D00000002-00093", Timestamp is "1527295748538" & "7b45a9f6f5584fc50b3152d41a5323a2" is the Region ID. 

 

Under HBase Data Directory, each Table Directory would have Region-Level Directories as identified by Region ID ("7b45a9f6f5584fc50b3152d41a5323a2" in Example). The Region ID is an MD5 encoded string for the Region Name & generated by HBase itself. Refer [1], if your Team wish to review the same. 

 

Regards, Smarak

 

[1] https://hbase.apache.org/apidocs/src-html/org/apache/hadoop/hbase/client/RegionInfo.html#line.164

 

Translate