Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF4A110B7C for ; Wed, 7 Aug 2013 10:57:50 +0000 (UTC) Received: (qmail 38539 invoked by uid 500); 7 Aug 2013 10:57:45 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 37981 invoked by uid 500); 7 Aug 2013 10:57:44 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 37971 invoked by uid 99); 7 Aug 2013 10:57:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 10:57:43 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of liulei412@gmail.com designates 209.85.128.195 as permitted sender) Received: from [209.85.128.195] (HELO mail-ve0-f195.google.com) (209.85.128.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 10:57:36 +0000 Received: by mail-ve0-f195.google.com with SMTP id m1so323775ves.6 for ; Wed, 07 Aug 2013 03:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VSE8j1lbvdwpV93VcXOt1OL3IaSev8EtrDgAUIrW9yk=; b=J8kHkGt1eWS/twI2dlA/YRULPLafDg4DKJNxevBgA3KQOfV24Ofwebc0jgKLQb5NfS lb47qmMYeiTVORtpSrXamOR3UF8M7U5Ouf6RSa2Oun++Bx0DMC+gzcxkp/Yl1K/JnJxd FDv3hhmXV/xOenjMmbVwpbUSVaPQ6j1ZVuBEIUeoMw5USLOJ5JXupcohdxmn/VLN2I+u m3LYuRh1U7xbmiuX2xjF9twxM5d3ZsOY3PITqOd4Agb/g7zIYscuq03++inApNTTNTr8 orMcO6o1tLrQvKxchJd9z9BhuO5F+CThvP/yC1wsP5w/dKNoDo1Lku/41TFMnzkOXwao M1FA== MIME-Version: 1.0 X-Received: by 10.58.128.71 with SMTP id nm7mr853735veb.51.1375873036128; Wed, 07 Aug 2013 03:57:16 -0700 (PDT) Received: by 10.220.90.9 with HTTP; Wed, 7 Aug 2013 03:57:16 -0700 (PDT) Date: Wed, 7 Aug 2013 18:57:16 +0800 Message-ID: Subject: MutableCounterLong metrics display in ganglia From: lei liu To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b60518c9317e904e359676e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b60518c9317e904e359676e Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I use hadoop-2.0.5 and config hadoop-metrics2.properties file with below content. *.sink.ganglia.class=3Dorg. apache.hadoop.metrics2.sink.ganglia.GangliaSink31 *.sink.ganglia.period=3D10 *.sink.ganglia.supportsparse=3Dtrue namenode.sink.ganglia.servers=3D10.232.98.74:8649 datanode.sink.ganglia.servers=3D10.232.98.74:8649 I write one programme that call FSDataOutputStream.hsync() method once per second. There is "@Metric MutableCounterLong fsyncCount" metrics in DataNodeMetrics, when FSDataOutputStream.hsync() method is called, the value of fsyncCount is increased, dataNode send the value of fsyncCount to ganglia every ten seconds, so I think the value of fsyncCount in ganglia should be 10, 20 ,30, 40 and so on . but the ganglia display 1,1,1,1,1 ...... , so the value is the value of fsyncCount is set to zero every ten seconds and =94fsyncCount.value/10=93 . Is the the value of MutableCounterLong class set to zero every ten seconds and MutableCounterLong .value/10? Thanks, LiuLei --047d7b60518c9317e904e359676e Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
I use hadoop-2.0.5 and config hadoop-metrics2.properties f= ile with below content.
*.sink.ganglia.class=3Dorg.
apache.hadoop.me= trics2.sink.ganglia.GangliaSink31
*.sink.ganglia.period=3D10
*.sink.g= anglia.supportsparse=3Dtrue
namenode.sink.ganglia.servers=3D10.232.98.74:8649
datanode.sink.ganglia.servers=3D10.232.98.74:8649
<= br>I write one programme that call FSDataOutputStream.hsync() method= once per second.

There is "@Metric MutableCounterLong fsyncCount" metrics in D= ataNodeMetrics, when FSDataOutputStream.hsync() method is called, th= e value of=A0 fsyncCount is increased, dataNode send the value of=A0 fsyncC= ount to ganglia every ten seconds, so I think the value=A0 of=A0 fsyncCount= in ganglia should be 10, 20=20 ,30, 40 and so on .=A0 but the ganglia display 1,1,1,1,1 ...... , so the va= lue is
the value of fsyncCount is set to zero every ten seconds and = =94fsyncCount.value/10=93 .


Is=A0 the the value of MutableCounte= rLong class=A0 set to zero every ten seconds and =A0 MutableCounterLong .va= lue/10?

Thanks,

LiuLei


--047d7b60518c9317e904e359676e--