解决kylin查询报错:org.apache.kylin.rest.exception.InternalErrorException
报错信息:
-- ::, ERROR [Query 12e9c054-760c---b1f06724c9b6-] service.QueryService: : Exception when execute sql
java.lang.NullPointerException
at org.apache.kylin.metadata.project.ProjectL2Cache.loadCache(ProjectL2Cache.java:)
at org.apache.kylin.metadata.project.ProjectL2Cache.getCache(ProjectL2Cache.java:)
at org.apache.kylin.metadata.project.ProjectL2Cache.listExposedTables(ProjectL2Cache.java:)
at org.apache.kylin.metadata.project.ProjectManager.listExposedTables(ProjectManager.java:)
at org.apache.kylin.query.schema.OLAPSchemaFactory.createTempOLAPJson(OLAPSchemaFactory.java:)
at org.apache.kylin.rest.service.CacheService.getOLAPDataSource(CacheService.java:)
at org.apache.kylin.rest.service.QueryService.execute(QueryService.java:)
at org.apache.kylin.rest.service.QueryService.queryWithSqlMassage(QueryService.java:)
at org.apache.kylin.rest.service.QueryService.query(QueryService.java:)
at org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:)
at org.apache.kylin.rest.controller.QueryController.query(QueryController.java:)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
==========================[QUERY]===============================
Query Id: 12e9c054-760c---b1f06724c9b6
SQL: select VISIT_TYPE, count(*) from xxdb.xxtable group by VISIT_TYPE
LIMIT
User: ADMIN
Success: true
Duration: 0.0
Project: energon_dm
Realization Names: []
Cuboid Ids: []
Total scan count:
Result row count:
Accept Partial: true
Is Partial Result: false
Hit Exception Cache: false
Storage cache used: false
Message: null
==========================[QUERY]===============================
-- ::, ERROR [http-bio--exec-] controller.BasicController: :
org.apache.kylin.rest.exception.InternalErrorException
at org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:)
at org.apache.kylin.rest.controller.QueryController.query(QueryController.java:)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method.invoke(Method.java:)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:)
解决过程:
根据报错信息排查源码:

193行pi不为空,那就只能是pi.getExtFilters()为空,查看对应的meta数据,此字段果然为null。正常情况下此字段没值时应该是个空数组,改为空数组后解决。原来异常meta是用户自己生成通过后台程序传入kylin的。

ps: 上面代码位于类org.apache.kylin.metadata.project.ProjectL2Cache中,这个类对应的就是Meta中的一个project:

解决kylin查询报错:org.apache.kylin.rest.exception.InternalErrorException的更多相关文章
- 【Mybatis】mybatis查询报错org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'areaName' in 'class java.lang.String'
		
mybatis查询报错: Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for pro ...
 - mavne install 报错org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException
		
maven install 报错 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.Invoc ...
 - 解决:MySQL 报错:1045 - Access denied for user 'root'@'localhost'(using password YES)
		
一.前言 今年疯狂迷上了开源,只要看到好的开源项目,就会不顾一切一股脑扎进去研究,五一期间发现一个很好的关于众筹的开源项目,但不巧,这个项目竟然是 PHP 写的,没学过 PHP,自然对这个开源项目毫无 ...
 - 【mybatis】【mysql】mybatis查询mysql,group by分组查询报错:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
		
mybatis查询mysql,group by分组查询报错:Expression #1 of SELECT list is not in GROUP BY clause and contains no ...
 - 解决mysql安装报错:无法启动此程序,因为计算机丢失MSVCP120.dll
		
问题一: 因为装的是新系统,所以遇到mysql启动报错:无法启动此程序,因为计算机丢失MSVCP120.dll 后来参考这篇文章https://blog.csdn.net/huacode/articl ...
 - MongoDB 聚合查询报错
		
1.Distinct聚合查询报错 db.users.distinct("uname") db.runCommand({"distinct":"user ...
 - mysql开启慢查询报错:
		
1.进入mysql命令行:#mysql -uroot -p123456,执行下面的命令开启慢查询报错: set global slow_query_log=on; set global long_qu ...
 - Jpa自定义查询报错(Failed to convert from type [java.lang.Object[]] to type)
		
Jpa自定义查询报错 问题背景 今天遇到一个奇怪的报错"Failed to convert from type [java.lang.Object[]] to type",这个报错 ...
 - 用java运行Hadoop程序报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.
		
用java运行Hadoop例程报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.所写代码如下: package ...
 
随机推荐
- Effective STL 阅读笔记: Item 3:  Make copying cheap and correct for objects in containers
			
容器 (Containers) 用来存储对象 (Objects), 但是被存储的对象却并非原原本本是你给他的那一个, 而是你指定对象的一个拷贝.而后续对该容器内存储对象的操作,大多也是基于拷贝的. 拷 ...
 - [ JS 进阶 ] Repaint 、Reflow 的基本认识和优化
			
你是不是经常听师兄或一些前端前辈说不能用CSS通配符 *,CSS选择器层叠不能超过三层,CSS尽量使用类选择器,书写HTML少使用table,结构要尽量简单-DOM树要小....等这些忠告,以前我就大 ...
 - ServiceWorker pwa缓存
			
index.js if ( navigator.serviceWorker ) { console.log("cache index") window.addEventListen ...
 - C#后台获取ajax传来的xml格式数据值
			
前台: var xml = "<root>"; if(Name!=null) { xml += "<name>"+Name +" ...
 - QString 与中文问题
			
原文请看:http://www.cnblogs.com/phoenixlaozhu/articles/2553180.html (更新:本文的姊妹篇Qt5与中文问题) 首先呢,声明一下,QString ...
 - ref:浅谈XXE漏洞攻击与防御
			
ref:https://thief.one/2017/06/20/1/ 浅谈XXE漏洞攻击与防御 发表于 2017-06-20 | 分类于 web安全 | 热度 3189 ℃ 你会挽着我 ...
 - 洛谷P2922 [USACO008DEC] 秘密消息Secret Message [Trie树]
			
洛谷传送门,BZOJ传送门 秘密消息Secret Message Description 贝茜正在领导奶牛们逃跑.为了联络,奶牛们互相发送秘密信息. 信息是二进制的,共有M(1≤M≤5 ...
 - Visual Studio 2017为Android APK包签名
			
Visual Studio 2017为Android APK包签名 为Android APK包签名,可以保证后期的App顺利升级.在Visual Studio 2015中,IDE会自动生成两个AP ...
 - iOS 9音频应用播放音频之控制播放速度
			
iOS 9音频应用播放音频之控制播放速度 iOS 9音频控制播放速度 iOS9音频文件在播放时是以一定的速度进行的.这个速度是可以进行更改的,从而实现iOS9音频文件的快速播放和慢速播放功能.要实现i ...
 - 【BZOJ 3235】 3235: [Ahoi2013]好方的蛇 (单调栈+容斥原理)
			
3235: [Ahoi2013]好方的蛇 Time Limit: 10 Sec Memory Limit: 64 MBSubmit: 187 Solved: 95 Description 有一天, ...