Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 30203 invoked from network); 14 Jul 2008 20:14:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 20:14:53 -0000 Received: (qmail 39622 invoked by uid 500); 14 Jul 2008 20:14:52 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 39582 invoked by uid 500); 14 Jul 2008 20:14:52 -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 39571 invoked by uid 99); 14 Jul 2008 20:14:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 13:14:52 -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; Mon, 14 Jul 2008 20:14:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A13A4234C16B for ; Mon, 14 Jul 2008 13:14:31 -0700 (PDT) Message-ID: <600305325.1216066471659.JavaMail.jira@brutus> Date: Mon, 14 Jul 2008 13:14:31 -0700 (PDT) From: "Craig Macdonald (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3753) metrics: FileContext support overwrite mode In-Reply-To: <127769645.1215967291600.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-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613437#action_12613437 ] Craig Macdonald commented on HADOOP-3753: ----------------------------------------- I'm open to enlarging the requirements of this issue. However, my 2c is that I want to have a scoreboard file that I can easily point a script at to read (in this case collect and feed into RRD tool). IMHO, Log rotations etc can be handled externally - e.g. see logrotate(8) on linux. Overwriting should not loose data as the file is a scoreboard - it has current values of the counters. The metrics should continue to emit updated values, the client application reads the scoreboard file when it feels the need (and possibly store the values in a time-indexed format externally). This is how the counters etc in /proc on linux work. For example, /proc/net/snmp is read every 5 minutes. It's one (virtual) scoreboard file, which is kept updated by the kernel (but it could have equally been implemented as being dumped out once a second/minute etc). > metrics: FileContext support overwrite mode > ------------------------------------------- > > Key: HADOOP-3753 > URL: https://issues.apache.org/jira/browse/HADOOP-3753 > Project: Hadoop Core > Issue Type: Improvement > Components: metrics > Reporter: Craig Macdonald > Priority: Minor > > FileContext currently continually appends to the metrics log file(s), generating an ever lengthening file. > In some scenarios, it would be useful to simply write the current statistics to the file once every period, then overwrite the file for the next period. > For instance, this could be useful if an external application parsed the metrics output - e.g. Cacti to create realtime graphs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.