You can run "./bin/find-hive-dependency.sh -v", which will print out the hive dependencies that Kylin found from this machine. In the result please search whether the jar that containing the missing class is there (in this case it should be hive-exec); Also pls verify whether that jar exists in local path.
2017-05-09 9:55 GMT+08:00 张磊 <[email protected]>: > hi ShaoFeng > the hbase shell script > cat /usr/bin/hbase > #!/bin/bash > > > BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default} > [ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hbase ] && . > ${BIGTOP_DEFAULTS_DIR}/hbase > > > # Autodetect JAVA_HOME if not defined > . /usr/lib/bigtop-utils/bigtop-detect-javahome > > > export HADOOP_CONF=${HADOOP_CONF:-/etc/hadoop/conf} > export ZOOKEEPER_HOME=${ZOOKEEPER_HOME:-/usr/lib/zookeeper} > export HBASE_CLASSPATH=$HADOOP_CONF:$HADOOP_HOME/*:$HADOOP_HOME/ > lib/*:$ZOOKEEPER_HOME/*:$ZOOKEEPER_HOME/lib/*:$HBASE_CLASSPATH > > > exec /usr/lib/hbase/bin/hbase "$@" > > > > I find HBASE_CLASSPATH is appended > > > > > > > > > > > ------------------ 原始邮件 ------------------ > 发件人: "ShaoFeng Shi";<[email protected]>; > 发送时间: 2017年5月8日(星期一) 晚上8:45 > 收件人: "dev"<[email protected]>; > > 主题: Re: java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/ > session/SessionState > > > > hi lei, > > Check the first item in Kylin's FAQ: > https://kylin.apache.org/docs20/gettingstarted/faq.html > > 2017-05-08 10:54 GMT+08:00 张磊 <[email protected]>: > > > I install the Kylin 2.0.0 in emr-5.3.0, follewed the > > http://kylin.apache.org/docs16/tutorial/cube_spark.html > > When i build the kylin_sales_cube in 2 step, the error is: > > > > > > java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/ > session/SessionState > > at org.apache.kylin.source.hive.HiveClientFactory.getHiveClient( > HiveClientFactory.java:26) > > at org.apache.kylin.source.hive.HiveMRInput$ > > RedistributeFlatHiveTableStep.computeRowCount(HiveMRInput.java:256) > > at org.apache.kylin.source.hive.HiveMRInput$ > > RedistributeFlatHiveTableStep.doWork(HiveMRInput.java:300) 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:1142) > > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617) > > at java.lang.Thread.run(Thread.java:745) Caused by: java.lang. > ClassNotFoundException: > > org.apache.hadoop.hive.ql.session.SessionState at > > org.apache.catalina.loader.WebappClassLoaderBase.loadClass( > > WebappClassLoaderBase.java:1858) at org.apache.catalina.loader. > > WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701) ... 10 > > more > > > > > -- > Best regards, > > Shaofeng Shi 史少锋 > -- Best regards, Shaofeng Shi 史少锋
