In o.a.p.scripting check out the Pig and BoundScript classes. These are designed for use with scripting languages, but can be used equally well with Java. After you have bound a script with the Pig object, you can call illustrate on it.
Alan. On Dec 29, 2011, at 4:55 PM, Russell Jurney wrote: > Maybe illustrate isn't the right word, but what I want are sample records > from the job. > > Regarding illustrate, is there a way to fire illustrate through an API? > That way I can get at it with a web app. Parsing grunt is way hackish. > > On Thursday, December 29, 2011, Dmitriy Ryaboy <[email protected]> wrote: >> I am not sure what you mean. You can just replace all stores with >> illustrates and run the job, right? It's too late to be generating > previews >> when you've already payed the cost of running the whole job... >> >> On Wed, Dec 28, 2011 at 10:45 AM, Russell Jurney >> <[email protected]>wrote: >> >>> I want to recreate PigPen as a web app. Can to has Illustrate or some >>> kind of sample records in PigStats? That is all that is missing to >>> make this trivial. >>> >>> Looking at this: >>> >>> > http://pig.apache.org/docs/r0.8.1/api/org/apache/pig/tools/pigstats/PigStats.html >>> >>> Russell Jurney >>> twitter.com/rjurney >>> [email protected] >>> datasyndrome.com >>> >> > > -- > Russell Jurney > twitter.com/rjurney > [email protected] > datasyndrome.com
