[ 
https://issues.apache.org/jira/browse/KYLIN-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027287#comment-16027287
 ] 

liyang commented on KYLIN-2511:
-------------------------------

Since 2.0, another workaround other than the "kylin.engine.mr.lib-dir" is set 
the below env vars.

export HADOOP_CONF_DIR=/etc/hadoop/conf
export HIVE_LIB=/usr/lib/hive
export HIVE_CONF=/etc/hive/conf
export HCAT_HOME=/usr/lib/hive-hcatalog

Then "bin/find-hive-dependencies.sh" should pick up the right hive jars.

> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfo
> -------------------------------------------------------------------------------
>
>                 Key: KYLIN-2511
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2511
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: LIUCUN
>
> When I use the apache-kylin-1.6.0-cdh5.7-bin.tar.gz + CDH5.8 to build the 
> sample cube , will cause the ERROR at Extract Fact Table Distinct Columns 
> step , the ERROR info as belows:
> 2017-03-16 11:21:18,357 ERROR [pool-9-thread-6] 
> threadpool.DefaultScheduler:140 : ExecuteException 
> job:02941fbe-6f3a-4a2c-bb99-4bb61b388f80
> org.apache.kylin.job.exception.ExecuteException: 
> org.apache.kylin.job.exception.ExecuteException: 
> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfo
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:123)
>       at 
> org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:136)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.kylin.job.exception.ExecuteException: 
> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfo
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:123)
>       at 
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:57)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:113)
>       ... 4 more
> Caused by: java.lang.NoClassDefFoundError: 
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfo
>       at 
> org.apache.kylin.source.hive.HiveMRInput$HiveTableInputFormat.configureJob(HiveMRInput.java:105)
>       at 
> org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.setupMapper(FactDistinctColumnsJob.java:119)
>       at 
> org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:103)
>       at org.apache.kylin.engine.mr.MRUtil.runMRJob(MRUtil.java:92)
>       at 
> org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:120)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:113)
>       ... 6 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       ... 12 more



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to