Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 21470 invoked from network); 1 May 2007 23:48:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2007 23:48:36 -0000 Received: (qmail 54895 invoked by uid 500); 1 May 2007 23:48:43 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 54614 invoked by uid 500); 1 May 2007 23:48:42 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 54604 invoked by uid 99); 1 May 2007 23:48:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 16:48:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 16:48:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 76F35714058 for ; Tue, 1 May 2007 16:48:15 -0700 (PDT) Message-ID: <1234681.1178063295484.JavaMail.jira@brutus> Date: Tue, 1 May 2007 16:48:15 -0700 (PDT) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1313) JobInProgress should be public (or implement a public interface) In-Reply-To: <12349898.1178062095289.JavaMail.jira@brutus> 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-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492988 ] Doug Cutting commented on HADOOP-1313: -------------------------------------- The standard public API for such things is JobClient, not JobTracker. Is that not sufficient? It may not be, but I think that's the thing to change, rather than exposing stuff through JobTracker directly. To my thinking, the only reason that JobTracker is a public class is so that one can start and stop the daemon. Other interaction should be through JobClient. Could that work for you? > JobInProgress should be public (or implement a public interface) > ---------------------------------------------------------------- > > Key: HADOOP-1313 > URL: https://issues.apache.org/jira/browse/HADOOP-1313 > Project: Hadoop > Issue Type: Bug > Components: mapred > Reporter: Michael Bieniosek > > I'm trying to get programmatic access to hadoop job/task status through the JobTracker api. > I notice that JobTracker returns a JobInProgress object in several public methods (runningJobs, getJob). However, JobInProgress is a package-access class. So, oddly, I can get JobTracker.getJob(), but I can't store the result as a JobInProgress (I suppose I could store it as an Object, but then I couldn't upcast it back). > The JobInProgress object gives me useful information about jobs, so I don't think making runningJobs/getJob not public is a good idea. I get the idea from HADOOP-28 that JobInProgress is not public because nobody wants to maintain compatibility in this class across hadoop versions. > So it would probably be best if we created public interfaces that JobInProgress and TaskInProgress implement. I only care about the accessors, so maybe from JobInProgress we could expose (getProfile, getStatus, get*Time, {finished,desired,running}{Maps,Reduces}, getMapTasks, getCounters) and from TaskInProgress (isRunning, isComplete, isFailed, isMapTask, numTaskFailures, numKilledTasks, getProgress, getCounters). > Any thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.