Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace in HBase?

Tags:

hbase

How can I list down all the tables created under a single namespace in HBase? In Hbase, is there anything like show tables; which we can use in Hive to find all tables under a particular database.

like image 625
Sumit Avatar asked Dec 07 '15 08:12

Sumit


1 Answers

You can use commands list_namespace_tables from HBase shell. It lists all tables that are members of the namespace. Example

hbaseshell> list_namespace_tables 'default'

You can list the namespaces like so:

hbaseshell> list_namespace
NAMESPACE
default
hbase
like image 50
Alexander Kuznetsov Avatar answered Nov 04 '22 15:11

Alexander Kuznetsov