You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Raj Hadoop <ha...@yahoo.com> on 2013/05/31 15:47:48 UTC

Logging error messages in Pig

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

Re: Logging error messages in Pig

Posted by Raj Hadoop <ha...@yahoo.com>.
After I started a new session -   its working. Thanks.




________________________________
 From: Shahab Yunus <sh...@gmail.com>
To: user@pig.apache.org; Raj Hadoop <ha...@yahoo.com> 
Sent: Tuesday, June 4, 2013 12:09 PM
Subject: Re: Logging error messages in Pig
 

Was there an error in your pig script? Aren't only error messages being
logged in that log file?

Regards,
Shahab


On Tue, Jun 4, 2013 at 11:34 AM, Raj Hadoop <ha...@yahoo.com> wrote:

>
> 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 <pr...@gmail.com>
> To: "user@pig.apache.org" <us...@pig.apache.org>
> 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 <ha...@yahoo.com> 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

Re: Logging error messages in Pig

Posted by Shahab Yunus <sh...@gmail.com>.
Was there an error in your pig script? Aren't only error messages being
logged in that log file?

Regards,
Shahab


On Tue, Jun 4, 2013 at 11:34 AM, Raj Hadoop <ha...@yahoo.com> wrote:

>
> 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 <pr...@gmail.com>
> To: "user@pig.apache.org" <us...@pig.apache.org>
> 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 <ha...@yahoo.com> 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

Re: Logging error messages in Pig

Posted by Raj Hadoop <ha...@yahoo.com>.
 
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 <pr...@gmail.com>
To: "user@pig.apache.org" <us...@pig.apache.org> 
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 <ha...@yahoo.com> 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

Re: Logging error messages in Pig

Posted by Prashant Kommireddi <pr...@gmail.com>.
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 <ha...@yahoo.com> 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