Gang,

Have you tried logging into the hadoop job tracker console and clicking on the job that hive produced? Click on the failed tasks and see what the error is. Which version of hadoop and hive are you running? I believe the user guide suggests checking out code from trunk, but you should instead checkout the code for the stable 0.4 release:

svn co  http://svn.apache.org/repos/asf/hadoop/hive/tags/release-0.4.0/

Thanks,
Ryan




On Oct 22, 2009, at 6:00 PM, Gang Luo <[email protected]> wrote:

Hi everyone,
I am new to Hive. Here is a problem.

I followed the getting started instructions to setup my hive (as well as hadoop). I can create tables, show tables and select without any where clause. But once I do something that need to execute mapreduce jobs, it failed. A sample operation and the error is listed below:

hive> select a.id from age a where id=1;
Total MapReduce jobs = 1
Number of reduce tasks is set to 0 since there's no reduce operator
Starting Job = job_200910221333_0009, Tracking URL = 
http://localhost:50030/jobdetails.jsp?jobid=job_200910221333_0009
Kill Command = /home/lgpublic/bin/hadoop/hadoop-0.20.1/bin/.../bin/ hadoop job -Dmapred.job.tracker=localhost:9001 -kill job_200910221333_0009
2009-10-22 04:19:50,787 map = 100%,  reduce = 100%
Ended Job = job_200910221333_0009 with errors
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.ExecDriver

I try the example in hive user guide (the u_data), it also failed. When I try to run a mapreduce jobs directly on hadoop, it works well. Could anyone give me some hints on this problem? Thanks.

Gang Luo
---------
Department of Computer Science
Duke University
(919)316-0993
[email protected]



__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

Reply via email to