You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Anze <an...@volja.net> on 2010/10/16 19:57:37 UTC
calling Pig programatically
Hi all!
I'm trying to create a replacement for Pig shell - for running Pig batches
from within our control program (dashboard). I'm having problems with calling
Pig and would appreciate some help.
I have checked all over the net and have also found this:
http://pig.apache.org/docs/r0.7.0/piglatin_ref1.html#Running+Pig+Latin
Is it possible to call some "pig executor" directly, without resorting to
hacks (writing program to txt file and running pig shell/grunt on it)?
It seems like a very basic thing. Am I missing something?
Thank you!
Kind regards,
Anze
Re: calling Pig programatically
Posted by Anze <an...@volja.net>.
Thank you both! It looks like I was searching for wrong keywords. :)
Thanks again,
Anze
On Saturday 16 October 2010, Ashutosh Chauhan wrote:
> Few more details on PigServer are here:
> http://wiki.apache.org/pig/EmbeddedPig
>
> On Sat, Oct 16, 2010 at 11:18, zaki rahaman <za...@gmail.com> wrote:
> > You can embed Pig in Java...
> >
> > http://pig.apache.org/docs/r0.7.0/setup.html#Sample+Code
> >
> > On Sat, Oct 16, 2010 at 1:57 PM, Anze <an...@volja.net> wrote:
> >> Hi all!
> >>
> >> I'm trying to create a replacement for Pig shell - for running Pig
> >> batches from within our control program (dashboard). I'm having
> >> problems with calling
> >> Pig and would appreciate some help.
> >>
> >> I have checked all over the net and have also found this:
> >> http://pig.apache.org/docs/r0.7.0/piglatin_ref1.html#Running+Pig+Latin
> >>
> >> Is it possible to call some "pig executor" directly, without resorting
> >> to hacks (writing program to txt file and running pig shell/grunt on
> >> it)?
> >>
> >> It seems like a very basic thing. Am I missing something?
> >>
> >> Thank you!
> >>
> >> Kind regards,
> >>
> >> Anze
> >
> > --
> > Zaki Rahaman
Re: calling Pig programatically
Posted by Ashutosh Chauhan <as...@gmail.com>.
Few more details on PigServer are here:
http://wiki.apache.org/pig/EmbeddedPig
On Sat, Oct 16, 2010 at 11:18, zaki rahaman <za...@gmail.com> wrote:
> You can embed Pig in Java...
>
> http://pig.apache.org/docs/r0.7.0/setup.html#Sample+Code
>
>
>
> On Sat, Oct 16, 2010 at 1:57 PM, Anze <an...@volja.net> wrote:
>
>> Hi all!
>>
>> I'm trying to create a replacement for Pig shell - for running Pig batches
>> from within our control program (dashboard). I'm having problems with
>> calling
>> Pig and would appreciate some help.
>>
>> I have checked all over the net and have also found this:
>> http://pig.apache.org/docs/r0.7.0/piglatin_ref1.html#Running+Pig+Latin
>>
>> Is it possible to call some "pig executor" directly, without resorting to
>> hacks (writing program to txt file and running pig shell/grunt on it)?
>>
>> It seems like a very basic thing. Am I missing something?
>>
>> Thank you!
>>
>> Kind regards,
>>
>> Anze
>>
>>
>
>
> --
> Zaki Rahaman
>
Re: calling Pig programatically
Posted by zaki rahaman <za...@gmail.com>.
You can embed Pig in Java...
http://pig.apache.org/docs/r0.7.0/setup.html#Sample+Code
On Sat, Oct 16, 2010 at 1:57 PM, Anze <an...@volja.net> wrote:
> Hi all!
>
> I'm trying to create a replacement for Pig shell - for running Pig batches
> from within our control program (dashboard). I'm having problems with
> calling
> Pig and would appreciate some help.
>
> I have checked all over the net and have also found this:
> http://pig.apache.org/docs/r0.7.0/piglatin_ref1.html#Running+Pig+Latin
>
> Is it possible to call some "pig executor" directly, without resorting to
> hacks (writing program to txt file and running pig shell/grunt on it)?
>
> It seems like a very basic thing. Am I missing something?
>
> Thank you!
>
> Kind regards,
>
> Anze
>
>
--
Zaki Rahaman