English 中文(简体)
hivelap.ql.exec.mapredtask
原标题:hive failed execution error return code 2 from org.apache.hadoop.hive.ql.exec.mapredtask
  • 时间:2012-05-10 10:40:08
  •  标签:
  • hadoop
  • hive

我有一个问题。 它正在对Hive CLI实施罚款,并将结果退回。 但是,当我是在Hive JDBC的帮助下执行时,我发现以下错误:

java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
    at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:192)

问题是什么? 我也正在通过壳牌照启用Hive Thrift服务器。 (我已写出一份能够开始Hive Thrift服务器的手稿),后来我决定通过打字指挥,以手工方式启动冲破服务器:

hadoop@ubuntu:~/hive-0.7.1$ bin/hive --service hiveserver
Starting Hive Thrift Server
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:10000.
    at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:99)
    at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:80)
    at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:73)
    at org.apache.hadoop.hive.service.HiveServer.main(HiveServer.java:384)
    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:186)

hadoop@ubuntu:~/hive-0.7.1$

Please help me out from this. Thanks

最佳回答

For this error :
java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuer

加入:

http://docs.amazonwebservices.com/ElgalMapReduce/latest/DeveloperGuide/UsingEMR_Hive.html”rel=“nofollow”http://docs.amazonwebservices.com/ElgalMapReduce/latest/DeveloperGuide/UsingEMR_Hive.html

增加

**hadoop-0.20-core.jar
hive/lib/hive-exec-0.7.1.jar
hive/lib/hive-jdbc-0.7.1.jar
hive/lib/hive-metastore-0.7.1.jar
hive/lib/hive-service-0.7.1.jar
hive/lib/libfb303.jar
lib/commons-logging-1.0.4.jar    
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar**

在你的项目的类别道路上,加上从原体和 h体的平衡中得出的这一节点,并尝试该守则。 并且与你一样,在项目班级道路上添加 had、 h和 h(如果你正在使用的话)平衡双管。

以及第二个错误

类型

**netstat -nl | grep 10000**

如果能显示某种手段,便可使用的是自给服务器。 第二种错误是,只有当你所指明的港口已经通过其他一些程序获得时,由于违约服务器港是10 000个,而上述净地位指挥就是这样。

说明:如果你通过双面/双面和双面连接,则使用从......双面/hive中分离出的密码;那么,密码不会连接起来,因为(不是肯定的)只有一名客户能够连接上冲服务器。

以上步骤有望解决你的问题。

NOTE :在你执行守则时,从cli撤出,在守则执行期间,将立即启动。

问题回答

某些问题经许可,只是试图从“赢得低薪工作”中找到某些问题。

要求将这些财产放在法典之前。

SET hive.exec.dynamic.partition = true;
SET hive.exec.dynamic.partition.mode = nonstrict;
set hive.auto.convert.join = false;
set hive.exec.max.dynamic.partitions=100000;
set hive.exec.max.dynamic.partitions.pernode=10000;




相关问题
Hadoop - namenode is not starting up

I am trying to run hadoop as a root user, i executed namenode format command hadoop namenode -format when the Hadoop file system is running. After this, when i try to start the name node server, it ...

What default reducers are available in Elastic MapReduce?

I hope I m asking this in the right way. I m learning my way around Elastic MapReduce and I ve seen numerous references to the "Aggregate" reducer that can be used with "Streaming" job flows. In ...

Establishing Eclipse project environment for HadoopDB

I have checked-out a project from SourceForge named HadoopDB. It uses some class in another project named Hive. I have used Eclipse Java build path setting to link source to the Hive project root ...

Hadoop: intervals and JOIN

I m very new to Hadoop and I m currently trying to join two sources of data where the key is an interval (say [date-begin/date-end]). For example: input1: 20091001-20091002 A 20091011-20091104 ...

hadoop- determine if a file is being written to

Is there a way to determine if a file in hadoop is being written to? eg- I have a process that puts logs into hdfs. I have another process that monitors for the existence of new logs in hdfs, but I ...

Building Apache Hive - impossible to resolve dependencies

I am trying out the Apache Hive as per http://wiki.apache.org/hadoop/Hive/GettingStarted and am getting this error from Ivy: Downloaded file size doesn t match expected Content Length for http://...

热门标签