Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 94518 invoked from network); 28 May 2010 00:16:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 May 2010 00:16:13 -0000 Received: (qmail 59295 invoked by uid 500); 28 May 2010 00:16:12 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 59270 invoked by uid 500); 28 May 2010 00:16:12 -0000 Mailing-List: contact pig-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@hadoop.apache.org Delivered-To: mailing list pig-dev@hadoop.apache.org Received: (qmail 59262 invoked by uid 99); 28 May 2010 00:16:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 00:16:12 +0000 X-ASF-Spam-Status: No, hits=-1474.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 00:16:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4S0FqSg002227 for ; Fri, 28 May 2010 00:15:52 GMT Message-ID: <23667670.39111275005752292.JavaMail.jira@thor> Date: Thu, 27 May 2010 20:15:52 -0400 (EDT) From: "Richard Ding (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Updated: (PIG-1333) API interface to Pig In-Reply-To: <309328411.519551269638547330.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-1333: ------------------------------ Attachment: (was: PIG-1333.patch) > API interface to Pig > -------------------- > > Key: PIG-1333 > URL: https://issues.apache.org/jira/browse/PIG-1333 > Project: Pig > Issue Type: Improvement > Reporter: Olga Natkovich > Assignee: Richard Ding > Fix For: 0.8.0 > > Attachments: PIG-1333.patch > > > It would be nice to make Pig more friendly for applications like workflow that would be executing pig scripts on user behalf. > Currently, they would have to use pig command line to execute the code; however, this has limitation on the kind of output that would be delivered. For instance, it is hard to produce error information that is easy to use programatically or collect statistics. > The proposal is to create a class that mimics the behavior of the Main but gives users a status object back. The the main code of pig would look somethig like: > public static void main(String args[]) > { > PigStatus ps = PigMain.exec(args); > exit (PigStatus.rc); > } > We need to define the following: > - Content of PigStatus. It should at least include > * return code > * error string > * exception > * statistics > - A way to propagate the status class through pig code -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.