The hive env seems not correct as the missing class is reported from hive
itself, not from Kylin. Checked hive is working from shell?

On Tue, Nov 21, 2017 at 2:39 PM, 446463...@qq.com <446463...@qq.com> wrote:

> I add
> kylin.job.mr.lib.dir=/opt/cloudera/parcels/CDH/lib/sentry/lib/
> in kylin.properties and It's not work
> I view the kylin.log and found hive-common.jar is udpated to the MR
> and org/apache/hadoop/hive/common/StringInternUtils is found in the class
> path
> why didn't work?
>
>
>
> 446463...@qq.com
>
> From: 446463...@qq.com
> Date: 2017-11-21 11:20
> To: dev; user
> Subject: Build error in Step 3
> Hi all:
> I meet an error In building sample cube in mine kylin server
> java.lang.NoClassDefFoundError: org/apache/hadoop/hive/common/
> StringInternUtils
>         at org.apache.hadoop.hive.ql.plan.TableDesc.setProperties(
> TableDesc.java:127)
>         at org.apache.hadoop.hive.ql.plan.TableDesc.<init>(
> TableDesc.java:65)
>         at org.apache.hive.hcatalog.common.HCatUtil.getInputJobProperties(
> HCatUtil.java:443)
>         at org.apache.hive.hcatalog.mapreduce.InitializeInput.
> extractPartInfo(InitializeInput.java:161)
>         at org.apache.hive.hcatalog.mapreduce.InitializeInput.
> getInputJobInfo(InitializeInput.java:137)
>         at org.apache.hive.hcatalog.mapreduce.InitializeInput.
> setInput(InitializeInput.java:86)
>         at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.
> setInput(HCatInputFormat.java:95)
>         at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.
> setInput(HCatInputFormat.java:51)
>         at org.apache.kylin.source.hive.HiveMRInput$HiveTableInputFormat.
> configureJob(HiveMRInput.java:111)
>         at org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.
> setupMapper(FactDistinctColumnsJob.java:141)
>         at org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.
> run(FactDistinctColumnsJob.java:119)
>         at org.apache.kylin.engine.mr.MRUtil.runMRJob(MRUtil.java:102)
>         at org.apache.kylin.engine.mr.common.MapReduceExecutable.
> doWork(MapReduceExecutable.java:123)
>         at org.apache.kylin.job.execution.AbstractExecutable.
> execute(AbstractExecutable.java:124)
>         at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(
> DefaultChainedExecutable.java:64)
>         at org.apache.kylin.job.execution.AbstractExecutable.
> execute(AbstractExecutable.java:124)
>         at org.apache.kylin.job.impl.threadpool.DefaultScheduler$
> JobRunner.run(DefaultScheduler.java:142)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.hive.common.StringInternUtils
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 20 more
>
> environment:
> Ubuntu 16.04 TLS
> CDH5.12.1+kylin 2.0.0
>
>
> 446463...@qq.com
>

Reply via email to