使用配置单元得到异常java.lang.NoClassDefFoundError:org / apache / tez / dag / api / SessionNotRunning [英] using hive got exception java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
问题描述
在配置完hadoop
之后,我可以运行hdfs 然后安装配置单元并编辑conf文件以使其在tez上默认运行
但直接使用配置单元时会遇到一些特殊问题:
异常在线程 主要 java.lang.NoClassDefFoundError:在org.apache.hadoop.hive.ql.session.SessionState.start组织/阿帕奇/ TEZ / DAG / API / SessionNotRunning
(SessionState.java:353 )
在org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
在org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625 )
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJ ar.java:212)
版本信息:
hadoop:2.5
hive 0.13
tez 0.41
任何人都遇到过这个问题?
似乎不像PATH相关的错误。
我暂时解决了这个通过添加hiveconf强制蜂房使用先生发动机不TEZ;
像这样:
但是因为我想使用tez,任何人都可以帮忙?
after configuring hadoop I could run hdfs
then install hive and edit the conf file to make it run on tez by default, but running into some special issue when using hive directly:
hive
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:353)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Version Info: hadoop: 2.5 hive 0.13 tez 0.41
anyone met this before?
seems not like a PATH related error.
I temporarily solved this by add hiveconf to force hive use mr engine not tez;
like this:
hive -hiveconf hive.execution.engine=mr -e "my sql"
but as I want to use tez, anyone could help?
这篇关于使用配置单元得到异常java.lang.NoClassDefFoundError:org / apache / tez / dag / api / SessionNotRunning的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!