|
|
-
Configuring Pig 0.10.0 logs written by Grunt
Terry Siu 2012-10-03, 19:08
Hi,
I'm having trouble figuring out how to redirect the pig logs outputted by the Grunt shell to another directory. Currently, the logs get written to directory where I execute the pig script. I noticed that my Grunt shell is executed with the following property settings applicable for logging:
-Dpig.log.dir -Dpig.log.file
I would expect these properties to be referenced in org.apache.pig.Main (the entry point for the Grunt shell), but I see no reference to pig.log.dir and the reference to pig.log.file is actually pig.logfile. I updated the pig script where pig.log.file is to pig.logfile and at least see that my log file reported by Grunt is correct as opposed to my log files previously named pig_<timestamp>.log. Is this a bug? Furthermore, is there a way for Grunt to honor the pig.log.dir setting?
Thanks, -Terry
-
Re: Configuring Pig 0.10.0 logs written by Grunt
Prashant Kommireddi 2012-10-03, 19:12
$PIG_HOME/bin/pig -logfile <path>
Would that work?
On Wed, Oct 3, 2012 at 12:08 PM, Terry Siu <[EMAIL PROTECTED]> wrote:
> Hi, > > I'm having trouble figuring out how to redirect the pig logs outputted by > the Grunt shell to another directory. Currently, the logs get written to > directory where I execute the pig script. I noticed that my Grunt shell is > executed with the following property settings applicable for logging: > > -Dpig.log.dir > -Dpig.log.file > > I would expect these properties to be referenced in org.apache.pig.Main > (the entry point for the Grunt shell), but I see no reference to > pig.log.dir and the reference to pig.log.file is actually pig.logfile. I > updated the pig script where pig.log.file is to pig.logfile and at least > see that my log file reported by Grunt is correct as opposed to my log > files previously named pig_<timestamp>.log. Is this a bug? Furthermore, is > there a way for Grunt to honor the pig.log.dir setting? > > Thanks, > -Terry >
-
RE: Configuring Pig 0.10.0 logs written by Grunt
Terry Siu 2012-10-03, 19:19
Yes, that works! I was hoping that I could set the pig.log.dir property and then just let the pig script pick it up, but this is better than nothing and I can always write a wrapper. Thanks!!
-Terry
-----Original Message----- From: Prashant Kommireddi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2012 12:12 PM To: [EMAIL PROTECTED] Subject: Re: Configuring Pig 0.10.0 logs written by Grunt
$PIG_HOME/bin/pig -logfile <path>
Would that work?
On Wed, Oct 3, 2012 at 12:08 PM, Terry Siu <[EMAIL PROTECTED]> wrote:
> Hi, > > I'm having trouble figuring out how to redirect the pig logs outputted > by the Grunt shell to another directory. Currently, the logs get > written to directory where I execute the pig script. I noticed that my > Grunt shell is executed with the following property settings applicable for logging: > > -Dpig.log.dir > -Dpig.log.file > > I would expect these properties to be referenced in > org.apache.pig.Main (the entry point for the Grunt shell), but I see > no reference to pig.log.dir and the reference to pig.log.file is > actually pig.logfile. I updated the pig script where pig.log.file is > to pig.logfile and at least see that my log file reported by Grunt is > correct as opposed to my log files previously named > pig_<timestamp>.log. Is this a bug? Furthermore, is there a way for Grunt to honor the pig.log.dir setting? > > Thanks, > -Terry >
|
|