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

Switch to Threaded View
Pig >> mail # user >> Invoking pig scripts from java


Copy link to this message
-
Re: Invoking pig scripts from java
Have you looked at the PigServer API? Running scripts should be pretty
straightforward using it. Let us know if you face any issues.

http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/PigServer.html#registerScript%28java.lang.String%29
On Mon, Apr 22, 2013 at 11:50 PM, Siddhi Borkar <
[EMAIL PROTECTED]> wrote:

> Hi ,
>
> I need a way to invoke pig script from a java program and capture the
> output returned by the pig script. I was looking at the PigRunner api,
> however did not get much examples.
> Is there any way how this can be achieved?Any working examples?
>
> Thanks,
> Sid
>
> DISCLAIMER
> =========> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
>