hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sriram Krishnan <>
Subject Re: Error while reading from task log url
Date Fri, 20 Jul 2012 19:39:37 GMT
What version of Hadoop and Hive are you using? We have seen errors like this in the past –
and you can actually replace taskid with attemptid to fetch your logs.

So try this:

But yes, that is not the reason the job failed – you actually have to look at the task logs
to figure it out.


From: "<>" <<>>
Reply-To: <<>>
Date: Fri, 20 Jul 2012 14:28:48 -0500
To: <<>>
Subject: Re: Error while reading from task log url

First of all, this exception is not what is causing your job to fail. When a job fails Hive
attempts to automatically retrieve the task logs from the JobTracker's TaskLogServlet. This
indicates something wrong with your hadoop setup, JobTracker down, maybe?

You can suppress this exception by doing:

hive> SET<>=false;

Look into your task logs to see why your job actually failed.

On Fri, Jul 20, 2012 at 2:12 PM, Raihan Jamal <<>>
Whenever I run the below query-

SELECT buyer_id, item_id, ranknew(buyer_id, item_id), created_time
    SELECT buyer_id, item_id, created_time
    FROM testingtable1
    DISTRIBUTE BY buyer_id, item_id
    SORT BY buyer_id, item_id, created_time desc
) a
WHERE ranknew(buyer_id, item_id) %  2 == 0;

I always get the below error, I have no clue what does this error means? Is there any problem
with my query or something wrong with the system?

Total MapReduce jobs = 1
Launching Job 1 out of 1
Number of reduce tasks not specified. Estimated from input data size: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=<number>
In order to set a constant number of reducers:
  set mapred.reduce.tasks=<number>
Starting Job = job_201207172005_14407, Tracking URL =
Kill Command = /home/hadoop/latest/bin/../bin/hadoop job  -Dmapred.job.tracker=ares-jt:8021
-kill job_201207172005_14407
2012-07-21 02:07:15,917 Stage-1 map = 0%,  reduce = 0%
2012-07-21 02:07:27,211 Stage-1 map = 100%,  reduce = 0%
2012-07-21 02:07:38,700 Stage-1 map = 100%,  reduce = 33%
2012-07-21 02:07:48,517 Stage-1 map = 100%,  reduce = 0%
2012-07-21 02:08:49,566 Stage-1 map = 100%,  reduce = 0%
2012-07-21 02:09:08,640 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_201207172005_14407 with errors
java.lang.RuntimeException: Error while reading from task log url
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(
        at org.apache.hadoop.hive.ql.exec.ExecDriver.showJobFailDebugInfo(
        at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(
        at org.apache.hadoop.hive.ql.Driver.launchTask(
        at org.apache.hadoop.hive.ql.Driver.execute(
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processLine(
        at org.apache.hadoop.hive.cli.CliDriver.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(
Caused by: Server returned HTTP response code: 400 for URL:
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(
        ... 15 more
Ended Job = job_201207172005_14407 with exception 'java.lang.RuntimeException(Error while
reading from task log url)'

Raihan Jamal


View raw message