Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Logging error messages in Pig


Copy link to this message
-
Re: Logging error messages in Pig
 
I am running pig in local mode.
I modified the pig.properties file as well to include as
pig.logfile=/u11/hmr/h22/pig/log
 
While starting pig in local mode - I even see the following message
org.apache.pig.Main - Logging error messages to: /u11/hmr/h22/pig/log/pig_1370359836594.log
 
But after quitting from pig once I execute some commands succesfully - I am not able to see the log.
 
Where is this log being written to?
________________________________
From: Prashant Kommireddi <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2013 1:54 PM
Subject: Re: Logging error messages in Pig
Hi Raj,

You can use "-l" option while starting up pig, or set "pig.logfile" either
in your script or pig.properties
pig -l foo.log myscript.pig

set pig.logfile foo.log  -- within your script

pig.logfile=foo.log  # within pig.properties
On Fri, May 31, 2013 at 6:47 AM, Raj Hadoop <[EMAIL PROTECTED]> wrote:

> Hi,
>
> How do I modify the error messages file location in Pig.
>
> Is there any property in "pig.properties" or "log4j.properties".
>
> Thanks,
> Raj