|
|
-
macros and global variables
Aniket Mokashi 2011-12-22, 23:39
Hi,
I was wondering if there is a place to store common macros and global parameters in pig (pigrc?). This should be available to all the users accessing pig via grunt or script. Please let me know if you have any pointers.
Thanks, Aniket
-
Re: macros and global variables
Daniel Dai 2011-12-24, 00:10
Aniket, We don't have a macro repository yet, but seems it's a good time to create one. Make a macro directory inside piggybank seems to be a good place. It would be great if you can open a Jira and attach a patch.
Thanks, Daniel
On Thu, Dec 22, 2011 at 3:39 PM, Aniket Mokashi <[EMAIL PROTECTED]> wrote:
> Hi, > > I was wondering if there is a place to store common macros and global > parameters in pig (pigrc?). This should be available to all the users > accessing pig via grunt or script. > Please let me know if you have any pointers. > > Thanks, > Aniket >
-
Re: macros and global variables
Aniket Mokashi 2011-12-27, 22:53
Thanks Daniel, I will create a jira and submit a patch soon.
I was wondering if there is a way to "by default" register(define) a set of jars and macros everytime pig command is run. Please let me know.
AFAIK, for jars, I can put them into pig.additional.jars and for params (defines) I can do --param key=value. (macros? not sure). I feel it is too clumsy to put as command line params. Also, is there a way to have logs = load 'standard_location' using LogLoader(); as a default statement that is run everytime pig is forked (similar to bashrc)? If not, should we support this? Thoughts?
Thanks, Aniket
On Fri, Dec 23, 2011 at 4:10 PM, Daniel Dai <[EMAIL PROTECTED]> wrote:
> Aniket, > We don't have a macro repository yet, but seems it's a good time to create > one. Make a macro directory inside piggybank seems to be a good place. It > would be great if you can open a Jira and attach a patch. > > Thanks, > Daniel > > On Thu, Dec 22, 2011 at 3:39 PM, Aniket Mokashi <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > I was wondering if there is a place to store common macros and global > > parameters in pig (pigrc?). This should be available to all the users > > accessing pig via grunt or script. > > Please let me know if you have any pointers. > > > > Thanks, > > Aniket > > >
-- "...:::Aniket:::... Quetzalco@tl"
-
Re: macros and global variables
Daniel Dai 2012-01-01, 08:45
That seems reasonable. We can open a Jira.
Thanks, Daniel
On Tue, Dec 27, 2011 at 2:53 PM, Aniket Mokashi <[EMAIL PROTECTED]> wrote:
> Thanks Daniel, I will create a jira and submit a patch soon. > > I was wondering if there is a way to "by default" register(define) a set of > jars and macros everytime pig command is run. Please let me know. > > AFAIK, for jars, I can put them into pig.additional.jars and for params > (defines) I can do --param key=value. (macros? not sure). I feel it is too > clumsy to put as command line params. > Also, is there a way to have > logs = load 'standard_location' using LogLoader(); > as a default statement that is run everytime pig is forked (similar to > bashrc)? If not, should we support this? Thoughts? > > Thanks, > Aniket > > On Fri, Dec 23, 2011 at 4:10 PM, Daniel Dai <[EMAIL PROTECTED]> wrote: > > > Aniket, > > We don't have a macro repository yet, but seems it's a good time to > create > > one. Make a macro directory inside piggybank seems to be a good place. It > > would be great if you can open a Jira and attach a patch. > > > > Thanks, > > Daniel > > > > On Thu, Dec 22, 2011 at 3:39 PM, Aniket Mokashi <[EMAIL PROTECTED]> > > wrote: > > > > > Hi, > > > > > > I was wondering if there is a place to store common macros and global > > > parameters in pig (pigrc?). This should be available to all the users > > > accessing pig via grunt or script. > > > Please let me know if you have any pointers. > > > > > > Thanks, > > > Aniket > > > > > > > > > -- > "...:::Aniket:::... Quetzalco@tl" >
|
|