list

Definition

Returns all tables in HBase. An optional regular expression parameter can be used to filter the output.

Usage

list ['[<namespace_name>:]<table_name>' | 'table_regex']
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

table_regex

A regular expression for searching tables

Examples

Listing of all tables

hbase(main):010:0> list
TABLE
SYSTEM.CATALOG
SYSTEM.FUNCTION
SYSTEM.LOG
SYSTEM.MUTEX
SYSTEM.SEQUENCE
SYSTEM.STATS
ns1:t2
t1
t3
9 row(s)
Took 0.0044 seconds
=> ["SYSTEM.CATALOG", "SYSTEM.FUNCTION", "SYSTEM.LOG", "SYSTEM.MUTEX", "SYSTEM.SEQUENCE", "SYSTEM.STATS", "ns1:t2", "t1", "t3"]

Listing of tables matching the regular expression

hbase(main):015:0> list 't.'
TABLE
t1
t3
2 row(s)
Took 0.0034 seconds
=> ["t1", "t3"]
Found a mistake? Seleсt text and press Ctrl+Enter to report it