Namespace in HBase?

2019-04-09 16:04发布

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.

标签: hbase
1条回答
啃猪蹄的小仙女
2楼-- · 2019-04-09 16:42

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
查看更多
登录 后发表回答