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

Aihua Xu commented on HIVE-19296:
---------------------------------

[~ychena] Looks like we are already printing the errors to the log file from 
HIVE-17078. Can you verify if that's the case? 
{noformat}
      LogRedirector.redirect(
          Thread.currentThread().getName() + "-LocalTask-" + getName() + 
"-stdout",
          new LogRedirector(executor.getInputStream(), LOG, callback));
      LogRedirector.redirect(
          Thread.currentThread().getName() + "-LocalTask-" + getName() + 
"-stderr",
          new LogRedirector(executor.getErrorStream(), LOG, callback));
{noformat}

> Add log to record MapredLocalTask Failure
> -----------------------------------------
>
>                 Key: HIVE-19296
>                 URL: https://issues.apache.org/jira/browse/HIVE-19296
>             Project: Hive
>          Issue Type: Bug
>          Components: Diagnosability
>    Affects Versions: 1.1.0
>            Reporter: Yongzhi Chen
>            Assignee: Yongzhi Chen
>            Priority: Minor
>         Attachments: HIVE-19296.1.patch
>
>
> In some cases, When MapredLocalTask fails around Child process start time, we 
> can not find the detail error information anywhere(not in strerr log, no 
> MapredLocal log file). All we get is :
> {noformat}
> ******************* ERROR org.apache.hadoop.hive.ql.exec.Task: 
> [HiveServer2-Background-Pool: Thread-****]: Execution failed with exit 
> status: 1
> ******************* ERROR org.apache.hadoop.hive.ql.exec.Task: 
> [HiveServer2-Background-Pool: Thread-****]: Obtaining error information
> ******************* ERROR org.apache.hadoop.hive.ql.exec.Task: 
> [HiveServer2-Background-Pool: Thread-****]: 
> Task failed!
> Task ID:
>   Stage-48
> Logs:
> ******************* ERROR org.apache.hadoop.hive.ql.exec.Task: 
> [HiveServer2-Background-Pool: Thread-****]: 
> /var/log/hive/hadoop-cmf-hive1-HIVESERVER2-t.log.out
> ******************* ERROR org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask: 
> [HiveServer2-Background-Pool: Thread-****]: Execution failed with exit 
> status: 1
> {noformat}
> It is really hard to debug. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to