Kylin建立cube时报错

由于业务需要,搭了一个Kylin环境,但是在构建cube时,到第三步Extract Fact Table Distinct Columns会报错,

execution.ExecutableManager:389 : job id:**************** from RUNNING to ERROR

追踪到对应job的jobhistory,发现报如下错误:

Error: java.lang.ClassNotFoundException: org.apache.hadoop.hive.serde2.typeinfo.TypeInfo at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2138) at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2103) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2197) at org.apache.hadoop.mapreduce.task.JobContextImpl.getInputFormatClass(JobContextImpl.java:184) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1907) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)

google 了一下,找到这个帖子,https://issues.apache.org/jira/browse/KYLIN-2511
添加kylin.job.mr.lib.dir=/opt/cloudera/parcels/CDH/lib/sentry/lib 到 kylin.properties 配置文件,重启,就可以了。
本人环境:kylin2.0 + chd5.8.5-hadoop2.6.0

参考:
https://issues.apache.org/jira/browse/KYLIN-2511

你可能感兴趣的:(kylin)