HBase中的命名空间? [英] Namespace in HBase?

查看:519
本文介绍了HBase中的命名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能在HBase中的单个命名空间下创建所有表? list down
在Hbase中,有没有类似于 show tables; ,我们可以在Hive中使用它来查找特定数据库下的所有表。

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.

推荐答案

它列出了名称空间成员的所有表。
示例

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

这篇关于HBase中的命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆