Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 93913 invoked from network); 14 Oct 2008 16:44:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2008 16:44:06 -0000 Received: (qmail 74554 invoked by uid 500); 14 Oct 2008 16:44:05 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 74543 invoked by uid 500); 14 Oct 2008 16:44:05 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 74532 invoked by uid 99); 14 Oct 2008 16:44:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 09:44:05 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 16:43:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52BCF234C224 for ; Tue, 14 Oct 2008 09:43:44 -0700 (PDT) Message-ID: <1205111574.1224002624337.JavaMail.jira@brutus> Date: Tue, 14 Oct 2008 09:43:44 -0700 (PDT) From: "Christian Kunz (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-1474) Submittable interface, for the ability to execute and monitor jobs from a java class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639480#action_12639480 ] Christian Kunz commented on HADOOP-1474: ---------------------------------------- Sure. Duplicate of which jira? > Submittable interface, for the ability to execute and monitor jobs from a java class > ------------------------------------------------------------------------------------ > > Key: HADOOP-1474 > URL: https://issues.apache.org/jira/browse/HADOOP-1474 > Project: Hadoop Core > Issue Type: New Feature > Components: mapred > Reporter: Srikanth Kakani > > Hi, > We wish to add the following interface: > interface Submittable{ > RunningJob submitJob(JobConf jc); > } > Currently there is no clean way to monitor a submitted job programatically, one way would be to call main, and parse the output to figure out Jobid, and then monitor it using a JobClient. Currently the only way RunJar can run a Class in a Jar file is using main.invoke(). > The purpose of this interface is to be able to programatically call the class that extends this interface via another Class (similar to RunJar) and still be able to monitor it like JobClient does. > Essentially, all the functionality within a main class would be encapsulated within this method such as implementing constraints between various user defined job.xml keys. > The purpose of main would be reduced to parsing arguments, setting the JobConf and calling this function. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.