locate_region

Definition

Locates a Region by the given table name and the row key.

Usage

locate_region '[<namespace_name>:]<table_name>', '<row_key>'
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

row_key

A row key

Examples

hbase(main):021:0> put 't1', 'r1', 'cf1:c1', 'v1'
Took 0.1000 seconds
hbase(main):022:0> locate_region 't1', 'r1'
HOST                                     REGION
 bds-adh-2.ru-central1.internal:16020    {ENCODED => 562aabcac6ff0688b31260c44c9863c8, NAME => 't1,,1637234844003.562aabcac6ff0688b31260c44c9863c8.', STARTKEY => '', ENDKEY => ''}
1 row(s)
Took 0.0070 seconds
=> #<Java::OrgApacheHadoopHbase::HRegionLocation:0x6814262d>
Found a mistake? Seleсt text and press Ctrl+Enter to report it