Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 90399 invoked from network); 13 Mar 2008 15:24:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2008 15:24:03 -0000 Received: (qmail 53407 invoked by uid 500); 13 Mar 2008 15:23:58 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 53371 invoked by uid 500); 13 Mar 2008 15:23:58 -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 53338 invoked by uid 99); 13 Mar 2008 15:23:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 08:23:58 -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; Thu, 13 Mar 2008 15:23:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 81191234C0A1 for ; Thu, 13 Mar 2008 08:22:24 -0700 (PDT) Message-ID: <1131261728.1205421744527.JavaMail.jira@brutus> Date: Thu, 13 Mar 2008 08:22:24 -0700 (PDT) From: "Tom White (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-1328) Hadoop Streaming needs to provide a way for the stream plugin to update global counters 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-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom White updated HADOOP-1328: ------------------------------ Attachment: hadoop-1328.patch This patch adds support for counters in streaming. Scripts write lines to standard error of the form: counter:,, For example, in python you might write sys.stderr.write("counter:counters,linecount,1\n") > Hadoop Streaming needs to provide a way for the stream plugin to update global counters > --------------------------------------------------------------------------------------- > > Key: HADOOP-1328 > URL: https://issues.apache.org/jira/browse/HADOOP-1328 > Project: Hadoop Core > Issue Type: New Feature > Components: contrib/streaming > Reporter: Runping Qi > Assignee: Christopher Zimmerman > Attachments: hadoop-1328.patch > > > Sometimes, the stream plugin may want to create/update its own global counters. > There is no way to do so currently. > One possible way to enable that is to use the stderr output of the stream process. > The stream process can emit the global counter update information (such as GLOCAL_COUNTER COUNTER_NAME NUM) > to the stderr of the process. The Stderr handling thread can call the global counter API whenever it encounters the global counter update information line. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.