如何在 HBase shell 中使用 describe 'table_name' 创建表。

Posted

技术标签:

【中文标题】如何在 HBase shell 中使用 describe \'table_name\' 创建表。【英文标题】:How to use describe 'table_name' in HBase shell to create a table.如何在 HBase shell 中使用 describe 'table_name' 创建表。 【发布时间】:2016-11-25 09:01:41 【问题描述】:

我必须在不同的集群中创建一个表,并且我只有 hbase 表的描述很方便。如何在不同的集群中创建新的 hbase 表?

【问题讨论】:

【参考方案1】:

通过在新集群的终端中输入Hbase shell 进入hbase shell,然后给出命令create ‘<table name>’,’<column family>’ 为您提供您已经从先前集群的describe 'table name' 获得的表名和列族名。

更多信息: https://www.tutorialspoint.com/hbase/hbase_create_table.htm

https://www.tutorialspoint.com/hbase/hbase_describe_and_alter.htm

【讨论】:

以上是关于如何在 HBase shell 中使用 describe 'table_name' 创建表。的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 shell 脚本加载 Hbase 表

Hbase笔记3 shell命令

如何停止hbase的scan命令

hbase中shell命令

hbase中shell命令

如何使用java api像jdbc一样直接发送hbase shell命令?