【发布时间】:2016-07-20 11:12:31
【问题描述】:
我想通过 Hbase shell 创建 HBase 表的简化版本。例如: HBase 表“测试”已存在于 HBase 中,并提供以下信息:
TableName: 'test'
ColumnFamily: 'f'
Columns: 'f:col1', 'f:col2', 'f:col3', 'f:col4'
我想在 HBase 'test_reduced' 中创建另一个表,如下所示
TableName: 'test_reduced'
ColumnFamily: 'f'
Columns: 'f:col1', 'f:col3'
我们如何通过 HBase shell 做到这一点?我知道如何使用snapshot 命令复制表所以我主要是在HBase 表中寻找删除列名。
【问题讨论】:
标签: shell command hbase hbase-shell