kylin-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "49188074@qq.com" <49188...@qq.com>
Subject 回复: Re: 【kylin2.5.0】 NullPointerException
Date Mon, 15 Oct 2018 11:46:45 GMT
Yeah,it's right! We set the "enableStatementCache" field to false and then it works!

About java client,we modify the code of kylin-jdbc-2.5.0.jar, in the executeKylinQuery() method
of  KylinClient.java,we add a param,like this:

and the problem has been solved.

Thanks everybody for helping!


49188074@qq.com
 
发件人: Ma Gang
发送时间: 2018-10-14 10:28
收件人: user
主题: Re:Re:Re:Re: 【kylin2.5.0】 NullPointerException
Disable the preparedStatement cache should workaround this issue per my test, it can be disabled
by setting the "enableStatementCache" field to false in the sql request, like:
{
    "sql":"...",
    "project":"...",
    "enableStatementCache":false,
    ...
}

At 2018-10-14 10:23:06, "Ma Gang" <mg4work@163.com> wrote:
@all,
Jira ticket has been created for this issue: https://issues.apache.org/jira/browse/KYLIN-3629

I have provided a patch in the ticket, the issue is introduced by the preparedStatement cache
implementation: https://issues.apache.org/jira/browse/KYLIN-3536
I didn't consider the case that when there is no realization exists in the OLAPContext.

在 2018-10-14 00:06:24,"Ma Gang" <mg4work@163.com> 写道:
@guofeng,
You may first disable the preparestatement cache to see it works or not, it can be disabled
by setting the "enableStatementCache" field to false in the sql request, like:
{
    "sql":"...",
    "project":"...",
    "enableStatementCache":false,
    ...
}


At 2018-10-13 23:16:13, "Ma Gang" <mg4work@163.com> wrote:
That may caused by the sql that use preparedStatement didnot hit any cube, @guofeng, could
you provide the sql?

Ma Gang
邮箱:mg4work@163.com
Signature is customized by Netease Mail Master
On 10/13/2018 22:41, ShaoFeng Shi wrote: 
It looks more like a bug related with prepared statement cache.

@magang, it looks like the "preparedContext.olapContexts" may have null values but no check.


郭锋 <guofeng@bcpeople.com> 于2018年10月12日周五 下午3:52写道:
你好:
       我们用的是apache-kylin-2.5.0-bin-cdh60.tar.gz 





------------------
郭锋
百乘金科/金蛋分期/技术部/数据开发组
北京市朝阳区北辰世纪中心B座17层
 
 
 
------------------ Original ------------------
From:  "Lijun Cao"<641507577@qq.com>;
Date:  Fri, Oct 12, 2018 03:51 PM
To:  "user"<user@kylin.apache.org>; 
Subject:  Re: 【kylin2.5.0】 NullPointerException
 
Hi 郭锋: 

Which edition of Kylin 2.5 do you use ? 

The apache-kylin-2.5.0-bin-cdh57.tar.gz one or the apache-kylin-2.5.0-bin-cdh60.tar.gz one
?

Best Regards

Lijun Cao


在 2018年10月12日,15:35,郭锋 <guofeng@bcpeople.com> 写道:

hi all:

       Kylin的版本为2.5.0 , 部署在cdh6.0.0 上, 当向kylin发送查询语句时,服务器端出现NullPointerException,
发送的查询语句及kylin的日志信息见附件;
       请问,这个是什么问题,怎么解决?
       
       谢谢

               <2BFFF407@CEC66344.C94EC05B>
<2BFFF407@CEC66344.C94EC05B><x.rar><kylin参数请求异常信息.txt>



-- 
Best regards,

Shaofeng Shi 史少锋



 


 


 
Mime
View raw message