list_regions
Usage
list_regions '[namespace_name:]<table_name>'[,
{<attr_name> => '<attr_value>'[,...]}[,
<output_fields[]>]]
Parameter | Description |
---|---|
namespace_name |
A namespace name |
table_name |
A table name |
attr_name |
An optional parameter used for filtering results. Possible values: |
attr_value |
A desired value of the |
output_fields |
An optional array containing one or several fields that should be displayed in the output information. Possible values: |
Parameter | Description |
---|---|
SERVER_NAME |
A Region Server name |
REGION_NAME |
A full Region name |
START_KEY |
A start row key for the Region |
END_KEY |
An end row key for the Region |
SIZE |
A Region size in MB |
REQ |
A number of requests to the Region |
LOCALITY |
A Region locality ( |
Examples
Listing Regions without using filters
hbase(main):007:0> list_regions 't1' SERVER_NAME | REGION_NAME | START_KEY | END_KEY | SIZE | REQ | LOCALITY | -------------------------------------------------- | --------------------------------------------------- | ---------- | ---------- | ----- | ----- | ---------- | bds-adh-2.ru-central1.internal,16020,1637214343541 | t1,,1637234844003.562aabcac6ff0688b31260c44c9863c8. | | | 0 | 0 | 1.0 | 1 rows Took 0.5142 seconds
Listing Regions for the specified Region Server
hbase(main):010:0> list_regions 't1', {SERVER_NAME => 'bds-adh-2.ru-central1.internal,16020,1637214343541'} SERVER_NAME | REGION_NAME | START_KEY | END_KEY | SIZE | REQ | LOCALITY | -------------------------------------------------- | --------------------------------------------------- | ---------- | ---------- | ----- | ----- | ---------- | bds-adh-2.ru-central1.internal,16020,1637214343541 | t1,,1637234844003.562aabcac6ff0688b31260c44c9863c8. | | | 0 | 0 | 1.0 | 1 rows Took 0.0180 seconds
Restricting number of output fields
hbase(main):011:0> list_regions 't1', {}, ['SERVER_NAME','REGION_NAME'] SERVER_NAME | REGION_NAME | -------------------------------------------------- | --------------------------------------------------- | bds-adh-2.ru-central1.internal,16020,1637214343541 | t1,,1637234844003.562aabcac6ff0688b31260c44c9863c8. | 1 rows Took 0.0181 seconds