AnsweredAssumed Answered

hive error:Error while reading from task log url

Question asked by hlsc on Jul 9, 2013
Latest reply on Jul 9, 2013 by hlsc
i`m studying the mapr,but i meet a problem when i use the Hive.plz help me if you know the reason.

<code>

hive> select * from web_log where userid=1001 order by viewTime;
Total MapReduce jobs = 1
Launching Job 1 out of 1
Number of reduce tasks determined at compile time: 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_201307091857_0002, Tracking URL = http://node0:50030/jobdetails.jsp?jobid=job_201307091857_0002
Kill Command = /opt/mapr/hadoop/hadoop-0.20.2/bin/../bin/hadoop job  -kill job_201307091857_0002
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
2013-07-09 19:04:58,165 Stage-1 map = 0%,  reduce = 0%
2013-07-09 19:05:28,277 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_201307091857_0002 with errors
Error during job, obtaining debugging information...
Job Tracking URL: http://node0:50030/jobdetails.jsp?jobid=job_201307091857_0002
Examining task ID: task_201307091857_0002_m_000000 (and more) from job job_201307091857_0002
Unable to retrieve URL for Hadoop Task logs. Does not contain a valid host:port authority: maprfs:///
Exception in thread "Thread-11" java.lang.RuntimeException: Error while reading from task log url
at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:247)
at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:285)
at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:118)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.FileNotFoundException: http://node1:50060/tasklog?attemptid=attempt_201307091857_0002_m_000000_3
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
at java.net.URL.openStream(URL.java:1031)
at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:198)
... 3 more
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
MapReduce Jobs Launched:
Job 0: Map: 1  Reduce: 1   MAPRFS Read: 0 MAPRFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec


why is it?what should i do?

Outcomes