MapReduce服务 MRS-CLEAN FILES:示例

时间:2023-11-01 16:25:29

示例

添加carbon配置参数

carbon.clean.file.force.allowed = true

create table carbon01(a int,b string,c string) stored as carbondata;

insert into table carbon01 select 1,'a','aa';

insert into table carbon01 select 2,'b','bb';

delete from table carbon01 where segment.id in (0);

show segments for table carbon01;

CLEAN FILES FOR TABLE carbon01 options('force'='true');

show segments for table carbon01;

上述命令将从物理上删除所有DELETE SEGMENT命令删除的segment和合并后的旧的segment。

support.huaweicloud.com/cmpntguide-mrs/mrs_01_1448.html