我正在尝试访问配置单元中的视图,出现以下异常:
Getting log thread is interrupted, since query is done!
Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)
java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
at org.apache.hive.jdbc.HiveStatement.waitForOperationToComplete(HiveStatement.java:349)
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:251)
at org.apache.hive.beeline.Commands.executeInternal(Commands.java:988)
at org.apache.hive.beeline.Commands.execute(Commands.java:1160)
at org.apache.hive.beeline.Commands.sql(Commands.java:1074)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:1145)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:976)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:886)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:502)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
这是我的配置单元查询:
select * from sample_view;
我在$hive\u home/bin/hive中添加了spark\u home/jars路径,如下所示:
for f in ${SPARK_HOME}/jars/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
done
我试过了, hive.execution.engine
和斯帕克先生一样,但运气不好。
请帮帮我。
短暂性脑缺血发作
1条答案
按热度按时间wmtdaxz31#
当我看到这是因为几个原因,它可以是一个红鲱鱼错误,批多个一起。在没有看到ddl表或executor日志的情况下,这是我能提供的最佳答案。
(1) java错误,导航到此作业示例的yarn日志并读取executor日志。如果这是因为一个相对罕见的错误,你会发现它在这里。祝你好运这会很痛苦。
(2) 后台服务器异常,请重新启动hadoop和hive元素并重新运行命令。
(3) 尝试在另一个进程中调用底层数据。这将发现数据是否与ddl不匹配或已损坏。
(4) 修复并使表失效
祝你好运。