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 <[email protected]> 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
