I had checked it in the job list. It not have any running or error job for the cube. If there have any running or error job about this cube. I think I can't use others Kylin server to build and refresh it. In this case, it may be a Kylin bug.
-----Original Message----- From: ShaoFeng Shi [mailto:[email protected]] Sent: Friday, May 13, 2016 10:27 PM To: [email protected] Subject: Re: Can't build and refresh job Please check whether you have a running or error job for this cube; If true, you need discard it first; only after that you can start another build job, otherwise you will get "There is already a building segment" error. 2016-05-13 19:54 GMT+08:00 Yapu Jia <[email protected]>: > Hi, all, > > > > I can build and refresh a cube successful in the past. > > After a segment build success, I can’t refresh or build the > cube and query this segment data. > > The web tip is that: > > > > > > And, the kylin.log is that: > > > > java.lang.IllegalStateException: There is already a > building segment! > > at > org.apache.kylin.cube.CubeManager.checkNoBuildingSegment(CubeManager.j > ava:541) > > at > org.apache.kylin.cube.CubeManager.appendSegments(CubeManager.java:438) > > at > org.apache.kylin.cube.CubeManager.appendSegments(CubeManager.java:433) > > at > org.apache.kylin.cube.CubeManager.appendSegments(CubeManager.java:418) > > at > org.apache.kylin.rest.service.JobService.submitJob(JobService.java:208 > ) > > at > org.apache.kylin.rest.service.JobService$$FastClassByCGLIB$$83a44b2a.i > nvoke(<generated>) > > at > net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > > at > org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation > .invokeJoinpoint(Cglib2AopProxy.java:689) > > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(R > eflectiveMethodInvocation.java:150) > > at > org.springframework.security.access.intercept.aopalliance.MethodSecuri > tyInterceptor.invoke(MethodSecurityInterceptor.java:64) > > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(R > eflectiveMethodInvocation.java:172) > > at > org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterce > ptor.intercept(Cglib2AopProxy.java:622) > > at > org.apache.kylin.rest.service.JobService$$EnhancerByCGLIB$$bfa162cd.su > bmitJob(<generated>) > > at > org.apache.kylin.rest.controller.CubeController.rebuild(CubeController > .java:251) > > at > sun.reflect.GeneratedMethodAccessor37.invoke(Unknown > Source) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess > orImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > at > org.springframework.web.method.support.InvocableHandlerMethod.invoke(I > nvocableHandlerMethod.java:213) > > at > org.springframework.web.method.support.InvocableHandlerMethod.invokeFo > rRequest(InvocableHandlerMethod.java:126) > > at > org.springframework.web.servlet.mvc.method.annotation.ServletInvocable > HandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) > > at > org.springframework.web.servlet.mvc.method.annotation.RequestMappingHa > ndlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617 > ) > > at > org.springframework.web.servlet.mvc.method.annotation.RequestMappingHa > ndlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) > > at > org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapte > r.handle(AbstractHandlerMethodAdapter.java:80) > > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche > rServlet.java:923) > > at > org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher > Servlet.java:852) > > at > org.springframework.web.servlet.FrameworkServlet.processRequest(Framew > orkServlet.java:882) > > at > org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServle > t.java:800) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:649) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > I can use others kylin server to build or refresh this cube. > > And, when I restart this kylin server, I can refresh and > build this cube. So, I think that maybe a bug. > > Can you help me to fix it. > > > > Thanks, > > Yapu > > > -- Best regards, Shaofeng Shi
