Hi Rakesh,

Take a look at http://pig.apache.org/docs/r0.9.1/cont.html#embed-java
You could use PigServer.registerScript
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/PigServer.html#registerScript%28java.io.InputStream%29

Thanks,
Prashant

On Wed, Jan 18, 2012 at 12:12 PM, rakesh sharma <[email protected]
> wrote:

>
> Hi All,
> I want to invoke a pig script (stored in a separate file) from java. What
> are the options for doing it?
> Thanks,Rakesh

Reply via email to