Hi kangsen, It will be triggered when a new segment is built, see CubeService. updateOnNewSegmentReady(), line 637.
If a cube segment's all date is older than the retention days (say all before 30 days; if partial, it will not be selected), it will be dropped from the segment list first. The data (hdfs, HBase) cleanup will be deferred to StorageCleanupJob time. Best regards, Shaofeng Shi 史少锋 Apache Kylin PMC Email: [email protected] Apache Kylin FAQ: https://kylin.apache.org/docs/gettingstarted/faq.html Join Kylin user mail group: [email protected] Join Kylin dev mail group: [email protected] Lu, Kang-Sen <[email protected]> 于2019年12月6日周五 上午12:01写道: > I am running kylin 2.6.3. In kylin GUI configuring cube, at step “Refresh > Setting”, we can specify “Retention Threshold”, say, 30 (days). > > > > How would kylin automatically remove cube segments that is older than 30 > days? > > > > I searched kylin source code, it seems that kylin does save > “retentionRange” with each CubeDesc. But no other source code refers to > that retentionRange. > > > > Thanks. > > > > Kang-sen > > > ------------------------------ > Notice: This e-mail together with any attachments may contain information > of Ribbon Communications Inc. that is confidential and/or proprietary for > the sole use of the intended recipient. Any review, disclosure, reliance or > distribution by others or forwarding without express permission is strictly > prohibited. If you are not the intended recipient, please notify the sender > immediately and then delete all copies, including any attachments. > ------------------------------ >
