-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?
On Fri, Dec 23, 2011 at 4:10 PM, Daniel Dai <[EMAIL PROTECTED]> wrote:
> 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.
> On Thu, Dec 22, 2011 at 3:39 PM, Aniket Mokashi <[EMAIL PROTECTED]>
> > 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