kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "张磊" <121762...@qq.com>
Subject 回复: java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/session/SessionState
Date Tue, 09 May 2017 01:55:19 GMT
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";<shaofengshi@apache.org>;
发送时间: 2017年5月8日(星期一) 晚上8:45
收件人: "dev"<dev@kylin.apache.org>; 

主题: 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 张磊 <121762713@qq.com>:

> 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 史少锋
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message