I now it is does not directly answer your question but curious, have you
looked at PigRunner?

Regards,
Shahab


On Sun, Feb 16, 2014 at 9:16 AM, Jay Vyas <[email protected]> wrote:

> Hi pig:
>
> What is the common idiom for executing a Java application which runs pig
> commands using the direct Java API (i.e. by creatiing a PigServer object,
> etc...) ?   There are a few ways i can think of:
>
> 1) using "hadoop jar" , but this will of course fail since pig is not in
> the hadoop classpath.
>
> 2) using a "pig ..." command
>
> 3) Adding pig jars to the distributed cache at runtime in a standard java
> hadoop program.
>
> Not sure what is the "right" way to do it though?
>
> Thanks !
> --
> Jay Vyas
> http://jayunit100.blogspot.com
>

Reply via email to