You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zhenxiao Luo (JIRA)" <ji...@apache.org> on 2012/05/02 01:18:52 UTC

[jira] [Commented] (HIVE-2804) Task log retrieval fails on secure cluster

    [ https://issues.apache.org/jira/browse/HIVE-2804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266239#comment-13266239 ] 

Zhenxiao Luo commented on HIVE-2804:
------------------------------------

When running in CDH4 branch(which is using MR2 cluster), in a real non-secure cluster, always getting the following exception:


Exception in thread "Thread-31" java.lang.RuntimeException: Error while reading from task log url
	at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(TaskLogProcessor.java:130)
	at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:222)
	at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:82)
	at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://c0409.hal.cloudera.com:8080/tasklog?attemptid=attempt_1335202931724_0600_m_000000_0
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
	at java.net.URL.openStream(URL.java:1029)
	at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(TaskLogProcessor.java:120)
	... 3 more
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
MapReduce Jobs Launched: 
Job 0: Map: 2   HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec

After working a patch, using HostUtil.getTaskLogUrl() to retrieve the log, the same exception still happens.

Found out that, for this intentionally failed testcase, no log generated at all.
                
> Task log retrieval fails on secure cluster
> ------------------------------------------
>
>                 Key: HIVE-2804
>                 URL: https://issues.apache.org/jira/browse/HIVE-2804
>             Project: Hive
>          Issue Type: Bug
>          Components: Diagnosability, Query Processor, Security
>            Reporter: Carl Steinbach
>            Assignee: Zhenxiao Luo
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira