Hi MR, You can delete the segment manually with backing up metadata to local disk, and restore after the modification:
https://kylin.apache.org/docs23/howto/howto_backup_metadata.html After backup to local, you can open the "cube/<cube_name>.json" file with an text editor, then you can see a segment list. You can manually delete the invalid segment. Please be careful if you're doing in a production environment. 2018-04-28 13:59 GMT+08:00 ???? <[email protected]>: > Hello, > My Apche Kylin version is 2.1.0 . Do I have to download the latest > version ? Can I manually delete metadata information ? > Thank you > > ------------------ 原始邮件 ------------------ > *发件人:* "Ge Silas"<[email protected]>; > *发送时间:* 2018年4月24日(星期二) 下午3:17 > *收件人:* "[email protected]"<[email protected]>; > *主题:* Re: kylin根据分区build cube,出错的job直接删除,没有执行job的DISCARDED操作,然后通过调用rest > API删除没有成功的segment报错 > > Hello, > > What is your Apache Kylin version? In latest versions, I don’t think the > job with error status can be dropped directly before discarding it. > > At this moment, you may need to download, edit to remove this segment and > then upload your metadata, or start over with cloning the original cube. > > Thanks, > Silas > > On Apr 23, 2018, at 3:54 PM, ???? <[email protected]> wrote: > > 您好: > 我在创建一个 cube ,根据一个时间字段分区,定时build > <[email protected]> > build 这个时间段的时候,job 出错,我直接将job 删除(drop)掉了 > 然后再重新build (执行上图的操作),会报如下错误: > <[email protected]> > 我执行refresh操作<[email protected]>会报错< > [email protected]> > 在storage中会有这个segment<[email protected]>< > [email protected]> > > 但是我到hbase下查看 却没有KYLIN_KE4A0U0TUZ 这张表。 > 我通过javaScript调用kylin的rest API 删除这个segment 的时候报错: > <[email protected]> > 我想要重新build 这个segment 该怎么办? 谢谢 > > > > -- Best regards, Shaofeng Shi 史少锋
