Is the process to have multiple "create" commands against the same table? What is the syntax for it?
语法是这样的:
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}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.