Hi,

Have a look at the grunt source code, you'll need to pass your script through 
the preprocess stage with thr parameters to create a substituted pig file, 
which you can then pass to pig. I've written code that does this before by just 
doing what grunt does.

Cheers,

----- Original Message -----
From: Olga Natkovich <[email protected]>
To: [email protected] <[email protected]>; [email protected] 
<[email protected]>
Sent: Thu Oct 07 21:27:58 2010
Subject: RE: Passing parameters to Pig Script using Java

Not at this point as parameter substitution is implemented a s preprocessor on 
the script.

Olga

-----Original Message-----
From: rakesh kothari [mailto:[email protected]] 
Sent: Thursday, October 07, 2010 11:47 AM
To: [email protected]
Subject: Passing parameters to Pig Script using Java


Hi,

I have a pig script that needs certain parameters (passed using "-p" in pig 
shell) to execute. Is there a way to pass these parameters if I want to execute 
this script using "PigServer" after registering the script using 
PigServer.registerScript() ?

Thanks,
-Rakesh
                                          

Reply via email to