hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bc Wong (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1211) Tapping logs from child processes
Date Sun, 07 Mar 2010 00:04:27 GMT

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

bc Wong commented on HIVE-1211:
-------------------------------

I'd like to retrieve the logs related to a particular query.

SessionState.out and SessionState.err are meant for that exact purpose. Unfortunately, they
don't capture the child processes' output, which currently goes directly to System.out and
System.err. Therefore this patch introduces SessionState.childout and SessionState.childerr,
which by default (null) do nothing. But it allows anyone to hook a stream there to get the
child's output.

> Tapping logs from child processes
> ---------------------------------
>
>                 Key: HIVE-1211
>                 URL: https://issues.apache.org/jira/browse/HIVE-1211
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Logging
>            Reporter: bc Wong
>            Assignee: bc Wong
>         Attachments: HIVE-1211.1.patch
>
>
> Stdout/stderr from child processes (e.g. {{MapRedTask}}) are redirected to the parent's
stdout/stderr. There is little one can do to to sort out which log is from which query.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message