hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1407) Logging starts before being configured
Date Tue, 11 May 2010 05:29:30 GMT

    [ https://issues.apache.org/jira/browse/PIG-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866063#action_12866063
] 

Daniel Dai commented on PIG-1407:
---------------------------------

+1. Log should happen after setting up. 

> Logging starts before being configured
> --------------------------------------
>
>                 Key: PIG-1407
>                 URL: https://issues.apache.org/jira/browse/PIG-1407
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: Gianmarco De Francisci Morales
>            Assignee: Gianmarco De Francisci Morales
>            Priority: Trivial
>             Fix For: 0.8.0
>
>         Attachments: PIG-1407.patch
>
>   Original Estimate: 0.02h
>          Time Spent: 0.02h
>  Remaining Estimate: 0h
>
> Pig's Main starts logging before log4j has been configured.
> This way logging messages are mixed with pig's output.
> $ cat script.pig 
> A = LOAD 'input' AS (num:long, fruit:chararray);
> DUMP A;
> $ cat input 
> 1	orange
> 2	apple
> 3	coconut
> 4	mango
> 5	grape
> 6	pear
> $ pig -x local prova.pig > dump
> $ cat dump
> 0    [main] INFO  org.apache.pig.Main  - Logging error messages to: /home/gianmarcodfm/pig-sbox/pig_1273222206353.log
> (1,orange)
> (2,apple)
> (3,coconut)
> (4,mango)
> (5,grape)
> (6,pear)

-- 
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