You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Daniel Dai <da...@hortonworks.com> on 2012/01/01 09:45:52 UTC

Re: macros and global variables

That seems reasonable. We can open a Jira.

Thanks,
Daniel

On Tue, Dec 27, 2011 at 2:53 PM, Aniket Mokashi <an...@gmail.com> 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 <da...@hortonworks.com> 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 <an...@gmail.com>
> > 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"
>