You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by lhtle <lh...@126.com> on 2016/12/06 09:43:38 UTC

Kylin cube 创建完后,job也正常执行完,进行query时报错

您好!
      我的环境为Hadoop-2.7.1,Hive-1.1.0 ,HBase-1.0.0   ,apache-kylin-1.6.0-hbase1.x-bin
      按照sample.sh,执行完毕后,cube 创建完后,job也正常执行完,进行query时报错,如下
2016-12-06 17:27:55,892 ERROR [http-bio-7070-exec-9] controller.BasicController:44 :
org.apache.kylin.rest.exception.InternalErrorException: Error while executing SQL "select * from  KYLIN_SALES LIMIT 50000": org.apache.hadoop.hbase.DoNotRetryIOException: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment.getRegion()Lorg/apache/hadoop/hbase/regionserver/Region;  at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2165)  at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:103)  at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)  at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)  at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment.getRegion()Lorg/apache/hadoop/hbase/regionserver/Region;  at org.apache.kylin.storage.hbase.cube.v2.coprocessor.endpoint.CubeVisitService.visitCube(CubeVisitService.java:182)  at org.apache.kylin.storage.hbase.cube.v2.coprocessor.endpoint.generated.CubeVisitProtos$CubeVisitService.callMethod(CubeVisitProtos.java:4117)  at org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:7797)  at org.apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:1935)  at org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcServices.java:1917)  at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32209)  at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2134)  ... 4 more
        at org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:389)
        at org.apache.kylin.rest.controller.QueryController.query(QueryController.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:743)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:672)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:82)

请问apache-kylin-1.6.0-hbase1.x-bin不支持HBase-1.0.0吗?
因为现在的hadoop环境已经运行较长时间,HBase暂时不会升级,请问有其他解决方法吗?
十分期待您的回复!
十分感谢!

2016-12-06


lhtle 

Re: Kylin cube 创建完后,job也正常执行完,进行query时报错

Posted by Li Yang <li...@apache.org>.
HBase 1.x建议使用HBase 1.1.3以上。考虑升级一下HBase再试一试。

On Tue, Dec 6, 2016 at 7:31 PM, Luke_Selina <hu...@gmail.com>
wrote:

> 很有可能是兼容的问题,再仔细的对比一下版本;另外如果不想环境,可以尝试替换jar包,在进行尝试,good luck!
>
> --
> View this message in context: http://apache-kylin.74782.x6.
> nabble.com/Kylin-cube-job-query-tp6515p6519.html
> Sent from the Apache Kylin mailing list archive at Nabble.com.
>

Re: Kylin cube 创建完后,job也正常执行完,进行query时报错

Posted by Luke_Selina <hu...@gmail.com>.
很有可能是兼容的问题,再仔细的对比一下版本;另外如果不想环境,可以尝试替换jar包,在进行尝试,good luck!

--
View this message in context: http://apache-kylin.74782.x6.nabble.com/Kylin-cube-job-query-tp6515p6519.html
Sent from the Apache Kylin mailing list archive at Nabble.com.