P35
1.phoenix预分区
如要分4个分区建表命令如下:
create table if not exists ORDER_DTL( "id" varchar primary key, C1."status" varchar, C1."money" float, C1."pay_way" integer, C1."user_id" varchar, C1."operation_time" varchar, C1."category" varchar ) CONPRESSION='GZ' SPLIT ON ('3','5','7');
原先不使用预分区见表的情况如下:
使用预分区:
可以指定region数量进行分区
create table if not exists ORDER_DTL( "id" varchar primary key, C1."status" varchar, C1."money" float, C1."pay_way" integer, C1."user_id" varchar, C1."operation_time" varchar, C1."category" varchar ) CONPRESSION='GZ', SALT_BUCKETS=10;
标签:varchar,exists,phoenix,分区,id,HBase,C1 From: https://www.cnblogs.com/hmy22466/p/17705612.html