首页 > 其他 > 详细

Kudu建表语句

时间:2019-06-27 15:01:49      阅读:1004      评论:0      收藏:0      [点我收藏+]

--建表
CREATE TABLE kudu_testdb.perf_test_t1
(
id string ENCODING PLAIN_ENCODING COMPRESSION SNAPPY,
int_value int,
bigint_value bigint,
timestamp_value timestamp,
bool_value int,
PRIMARY KEY (histdate,id)
)
PARTITION BY HASH (histdate,id) PARTITIONS 2
STORED AS KUDU
TBLPROPERTIES (
‘kudu.table_name‘ = ‘testdb.perf_test_t1‘,
‘kudu.master_addresses‘ = ‘192.172.2.2:7051,192.172.2.3:7051,192.172.2.4:7051‘
);

Kudu建表语句

原文:https://www.cnblogs.com/whattaman/p/11096666.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!