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

Switch to Plain View
Pig >> mail # user >> macros and global variables

Aniket Mokashi 2011-12-22, 23:39
Daniel Dai 2011-12-24, 00:10
Copy link to this message
Re: macros and global variables
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:

> 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"
Daniel Dai 2012-01-01, 08:45