Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 07B6A10586 for ; Mon, 27 Jan 2014 01:16:08 +0000 (UTC) Received: (qmail 85514 invoked by uid 500); 27 Jan 2014 01:16:00 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 85275 invoked by uid 500); 27 Jan 2014 01:16:00 -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 85267 invoked by uid 99); 27 Jan 2014 01:15:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 01:15:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 01:15:53 +0000 Received: by mail-lb0-f180.google.com with SMTP id n15so3887700lbi.25 for ; Sun, 26 Jan 2014 17:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=p1NnsDW0JziJmJ+0cKf+Fwz0zvLGQxfkXfL8ke8GSs4=; b=BfyF0taY4+Bn8ddPWQJemF+qggM2ocOTtzAE0AzRBwKlHz7/8+fCDPMn4tyHvCr883 5tl+E1ETIP6ielfcAY88SIoQRLwqmt/kkG6BXwbxtojOb+dehiQQavofCHHcCM/95dK6 OxULJBRSHzAc4okUwN+5F+Y9wYpZPyec661Hr55xYia/NA/yP52vG5KOAKpKh8Djzkyh WbY6J2SLAwEIyMo7xPL9DkuuxS/cJlG1lNmrWCUnd0yBzGDWRLTeTfsGuEiFVX5hQD9F RTNUQe1bPutgx2EmwWbOgNZskYGY1DpNc0i8WmqNad8pIWd0Yby+j44jSqy2lRYSpQVs TZYw== MIME-Version: 1.0 X-Received: by 10.112.64.67 with SMTP id m3mr15028090lbs.11.1390785333167; Sun, 26 Jan 2014 17:15:33 -0800 (PST) Received: by 10.112.156.167 with HTTP; Sun, 26 Jan 2014 17:15:33 -0800 (PST) In-Reply-To: <869970D71E26D7498BDAC4E1CA92226B86E20144@MBX021-E3-NJ-2.exch021.domain.local> References: <869970D71E26D7498BDAC4E1CA92226B86E1FEA0@MBX021-E3-NJ-2.exch021.domain.local> <869970D71E26D7498BDAC4E1CA92226B86E20144@MBX021-E3-NJ-2.exch021.domain.local> Date: Sun, 26 Jan 2014 17:15:33 -0800 Message-ID: Subject: Re: HDFS read stats From: Ted Yu To: "common-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=001a11c3f924be0a1104f0e97102 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3f924be0a1104f0e97102 Content-Type: text/plain; charset=ISO-8859-1 Please take a look at DFSInputStream#ReadStatistics which contains four metrics including local bytes read. You can obtain ReadStatistics through getReadStatistics() Cheers On Sun, Jan 26, 2014 at 4:00 PM, John Lilley wrote: > Ted, > > Thanks for link! I says 2.1.0 beta fix, and I can find > FileSystem$Statistics class in 2.2.0 but it only seems to talk about > read/write ops and bytes, not the local-vs-remote bytes. What am I missing? > > John > > > > > > *From:* Ted Yu [mailto:yuzhihong@gmail.com] > *Sent:* Sunday, January 26, 2014 10:26 AM > *To:* common-user@hadoop.apache.org > *Subject:* Re: HDFS read stats > > > > Please take a look at https://issues.apache.org/jira/browse/HDFS-4698 > > > > Cheers > > > > On Sun, Jan 26, 2014 at 9:11 AM, John Lilley > wrote: > > Is there a way to monitor the proportion of HDFS read data that is > satisfied by local nodes vs going across the network? > > Thanks > > John > > > > > > > --001a11c3f924be0a1104f0e97102 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Please take a look at DFSInputStream#ReadStatistics which = contains four metrics including local bytes read.
You can obtain ReadSt= atistics through getReadStatistics()

Cheers


On Sun,= Jan 26, 2014 at 4:00 PM, John Lilley <john.lilley@redpoint.net= > wrote:

Ted,=

Thanks for link! =A0I say= s 2.1.0 beta fix, and I can find FileSystem$Statistics class in 2.2.0 but i= t only seems to talk about read/write ops and bytes, not the local-vs-remote bytes.=A0 What am I missing?

John=

=A0<= /p>

=A0<= /p>

From: Ted Yu [= mailto:yuzhihong@g= mail.com]
Sent: Sunday, January 26, 2014 10:26 AM
To: common-user@hadoop.apache.org
Subject: Re: HDFS read stats

=A0

Please take a look at=A0https://issues.apache.org= /jira/browse/HDFS-4698

=A0

Cheers

=A0

On Sun, Jan 26, 2014 at 9:11 AM, John Lilley <john.lilley@redp= oint.net> wrote:

Is there a way to monitor the proportion of HDFS rea= d data that is satisfied by local nodes vs going across the network?=

Thanks

John

=A0

=A0

=A0


--001a11c3f924be0a1104f0e97102--