FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Posted 胖头猫

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask相关的知识,希望对你有一定的参考价值。

hive启动后,出现以下异常

hive> show databases; FAILED: Error in metadata: MetaException(message:Got exception: java.net.ConnectException Call to centos7-01/192.168.146.135:9000 failed on connection exception: java.net.ConnectException: Connection refused) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

原因是hadoop集群没有启动(注意端口号9000)

[[email protected]01 conf]# start-all.sh //启动hadoop
starting namenode, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-namenode-centos7-01.out
centos7-03: starting datanode, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-datanode-centos7-03.out
centos7-02: starting datanode, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-datanode-centos7-02.out
centos7-01: starting secondarynamenode, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-secondarynamenode-centos7-01.out
starting jobtracker, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-jobtracker-centos7-01.out
centos7-03: starting tasktracker, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-tasktracker-centos7-03.out
centos7-02: starting tasktracker, logging to /opt/sw/hadoop-0.20.2/bin/../logs/hadoop-root-tasktracker-centos7-02.out
[[email protected]-01 conf]# jps
2608 NameNode
2753 SecondaryNameNode
2818 JobTracker
2904 Jps
2475 RunJar
就没问题了
hive> show databases; OK default Time taken: 1.104 seconds

 

以上是关于FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask的主要内容,如果未能解决你的问题,请参考以下文章

Error:Execution failed for task app怎么解决

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决方法

Error:Execution failed for task ':app:transformClassesWithDexForRelease'

Error:Execution failed for task ':app:processDebugManifest'. 合并冲突

Android异常篇 Error:Execution failed for task ‘:app:validateSigningDebug‘.