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

Switch to Threaded View
Pig >> mail # user >> How can I pass command-line parameters with whitespace to an apache pig script?


Copy link to this message
-
Re: How can I pass command-line parameters with whitespace to an apache pig script?
Thanks for the responses. But it still not working. Any other thoughts

-Abhijit
On Wed, Apr 24, 2013 at 10:00 PM, centerqi hu <[EMAIL PROTECTED]> wrote:

> You should pass  -param flt="a1==1 AND a2==2"
>
>
> 2013/4/24 David LaBarbera <[EMAIL PROTECTED]>
>
> > My first though is to try
> >
> > flt='\'a1==1 AND a2=2\''
> >
> > but mostly want to recommend running pig with the dry run (-r or -dryrun)
> >  flag so you can see how the substitution is being made.
> >
> > David
> >
> > On Apr 24, 2013, at 7:25 AM, Abhijit Chanda <
> [EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi,
> > >
> > > I want to pass a filter statement with in my pig script using parameter
> > > substitution.
> > >
> > > For that I have tried
> > >           exec -param flt='a1==1 AND a2=2'filterscript.pig
> > >
> > > But sadly it is throwing an exception message
> > >           ERROR org.apache.pig.tools.grunt.Grunt - ERROR 101: Local
> file
> > > 'AND' does not exist.
> > >
> > > Pig version - 0.9.2
> > >
> > > Any help will be appreciated
> > >
> > > -Abhijit
> >
> >
>
>
> --
> [EMAIL PROTECTED]|齐忠
>