-Re: Error while reading from task log url
Philip Tromans 2012-03-29, 16:56
You are running into: https://issues.apache.org/jira/browse/HIVE-1579
I've been meaning to submit a patch for this. I emailed the dev list
concerning a patch for it but got no reply...
Hive is crashing because it can't pull the debug logs for the failed
task, because it's trying to pull them from the url. If you change
taskid to attemptid in the url then you'll get the error logs you need
to debug the root cause.
I'll try and submit a patch at some point.
On 29 March 2012 17:36, Stephen Boesch <[EMAIL PROTECTED]> wrote:
> When I go to that url here is the result:
> HTTP ERROR 400
> Problem accessing /tasklog. Reason:
> Argument attemptid is required
> Powered by Jetty://
> 2012/3/29 Stephen Boesch <[EMAIL PROTECTED]>
>> I am able to run certain hive commands e.g. create table and select..
>> but not others .. Also my hadoop pseudo disributed cluster is working
>> fine - i can run the examples.
>> Examples of commands that fail:
>> insert overwrite table demographics select * from demographics_local;
>> Control-C (killing a task ends up with the same error with the "Error
>> while reading from task log url"
>> Hadoop job information for Stage-0: number of mappers: 1; number of
>> reducers: 0
>> 2012-03-29 08:05:40,699 Stage-0 map = 0%, reduce = 0%
>> 2012-03-29 08:06:10,868 Stage-0 map = 100%, reduce = 100%
>> Ended Job = job_201203231956_0010 with errors
>> Error during job, obtaining debugging information...
>> Examining task ID: task_201203231956_0010_m_000002 (and more) from job
>> Exception in thread "Thread-160" java.lang.RuntimeException: Error while
>> reading from task log url
>> at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:81)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.io.IOException: Server returned HTTP response code: 400
>> for URL:
>> at java.net.URL.openStream(URL.java:1010)
>> ... 3 more
>> FAILED: Execution Error, return code 2 from
>> I am running hive-0.8.1 aagainst hadoop-1.0.0