繁体   English   中英

如何使用shell在HBase表中创建多个列族

[英]How to create multiple column families in an HBase table using the shell

进程是否对同一个表有多个“create”命令? 它的语法是什么?

语法是这样的:

create '<table name>' , '<column-family1>' , '<column-family2>' etc..

答案是使用ruby列表:下面创建一个表'app',其中有三个列为famile m,f,c:

create 'app',['m','f','c']

创建具有多个列族和版本的Hbase表的语法如下:

create 'test', {NAME => 'e', VERSIONS => 5},{NAME => 'r', VERSIONS => 5},{NAME => 'rm', VERSIONS => 5},{NAME => 'rx', VERSIONS => 5},{NAME => 't', VERSIONS => 5},{NAME => 'w', VERSIONS => 5}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM