Re: Can't delete segment

2018-02-24 Thread ShaoFeng Shi
Hi xixin, I think this function is on the way, please check:
https://issues.apache.org/jira/browse/KYLIN-2884

2018-02-24 15:24 GMT+08:00 Xixin :

> Hello Shaofeng,
>
> I also met this problem recently, but a little different with Youcheng's
> problem.
>
> I assigned a timed task for a cube to add daily, but some env configure
> changes leads the Kylin job to error.
>
> then I drop the job, and want to refresh the segment, but failed.
> then I try to delete that segment, failed again.
>
> finally I got two solutions to solved this problem, A. purge that cube
> contains that 0Mb segment. B. backup metadata, modify metadata of that
> segment.
>
> To write down so much, I want to explain, users are able to create
> segments,
> why not let them can delete segments which build with error. like you said
> delete the related segment when drop the error job or other ways to
> discuss.
>
>
>
>
> --
> Sent from: http://apache-kylin.74782.x6.nabble.com/
>



-- 
Best regards,

Shaofeng Shi 史少锋


Re: Can't delete segment

2018-02-23 Thread Xixin
Hello Shaofeng,

I also met this problem recently, but a little different with Youcheng's
problem. 

I assigned a timed task for a cube to add daily, but some env configure
changes leads the Kylin job to error.

then I drop the job, and want to refresh the segment, but failed.
then I try to delete that segment, failed again.

finally I got two solutions to solved this problem, A. purge that cube
contains that 0Mb segment. B. backup metadata, modify metadata of that
segment.

To write down so much, I want to explain, users are able to create segments,
why not let them can delete segments which build with error. like you said
delete the related segment when drop the error job or other ways to discuss.




--
Sent from: http://apache-kylin.74782.x6.nabble.com/


Re: Can't delete segment

2018-02-02 Thread ShaoFeng Shi
Hi yousheng, it looks be a bug; when deleting a job, it should remove the
related segment. Could you please report a JIRA?

Next time, you don't need to purge the cube; you can backup the metadata to
disk, edit the cube json manually, and then restore it.

2018-02-02 18:29 GMT+08:00 张 佑铖 :

> Hi kylin team,
>
> After a job been error, I click drop  instead of discard by mistake, I
> can't find the job anywhere, but it still remain an empty segment in cube.
> When I call restful request /{cubeName}/segs/{segmentName}   it returns
> Cannot delete segment '' as its status is not READY. Discard the on-going
> job for it
> So it turn out to be a dilemma for, I can't build/refresh the segment, and
> I can't delete either.
> Finally I purge the cube...
> I wonder if it is a bug or there is some solutions?
>
>
> version 2.2.0
>
>
> thanks
>
>


-- 
Best regards,

Shaofeng Shi 史少锋