簡體   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