You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2017/11/02 03:33:00 UTC

[jira] [Commented] (KYLIN-2988) Segment Delete

    [ https://issues.apache.org/jira/browse/KYLIN-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16235122#comment-16235122 ] 

Shaofeng SHI commented on KYLIN-2988:
-------------------------------------

You can export the metadata to local, then edit /cube/<cube_name>.json to remove the segment; On finish, restore the metadata and restart Kylin:
https://kylin.apache.org/docs21/howto/howto_backup_metadata.html

> Segment Delete
> --------------
>
>                 Key: KYLIN-2988
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2988
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: songxiangjun
>            Priority: Critical
>
> How to delete the segment that has drop directly but not discard ?.. If I don't delete the segment, i can't merge a new one. Please....
> The following error occurs when I try to delete the segment:
> {"code":"999","data":null,"msg":"Cannot delete segment '20170927140000_20170928160000' as it is neither the first nor the last segment.","stacktrace":"org.apache.kylin.rest.exception.InternalErrorException: Cannot delete segment '20170927140000_20170928160000' as it is neither the first nor the last segment.\n\tat org.apache.kylin.rest.controller.CubeController.deleteSegment(CubeController.java:247)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)