Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5B97F200B6F for ; Wed, 10 Aug 2016 00:20:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A453160AB7; Tue, 9 Aug 2016 22:20:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A1746160AA5 for ; Wed, 10 Aug 2016 00:20:24 +0200 (CEST) Received: (qmail 93747 invoked by uid 500); 9 Aug 2016 22:20:23 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 93729 invoked by uid 99); 9 Aug 2016 22:20:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 22:20:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C57EF2C02A7 for ; Tue, 9 Aug 2016 22:20:22 +0000 (UTC) Date: Tue, 9 Aug 2016 22:20:22 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13031) Rack-aware read bytes stats should be managed by HFDS specific StorageStatistics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 09 Aug 2016 22:20:25 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414339#comment-15414339 ] Mingliang Liu commented on HADOOP-13031: ---------------------------------------- [~mingma], in this JIRA, I plan to separate the distance-specific rack-aware read bytes logic from {{FileSystemStorageStatistics}} to a new HDFS-specific class {{DFSRackAwareStorageStatistics}}, as commented in [HADOOP-13032]. We need to preserve the thread-local mechanism for doing this, tracked by [HADOOP-13435]. I submitted a patch for [HADOOP-13435], and any comments/reviews are very welcomed. After that is committed, I think the [HADOOP-13032] should be almost done as I also attached the initial patch. So after those two blockers, I will consolidate the effort of consuming the StorageStatistics with this JIRA. As you suggested, MR should probe before dumping the rack distance-aware read bytes so that undefined counters will not display. > Rack-aware read bytes stats should be managed by HFDS specific StorageStatistics > -------------------------------------------------------------------------------- > > Key: HADOOP-13031 > URL: https://issues.apache.org/jira/browse/HADOOP-13031 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Reporter: Mingliang Liu > Assignee: Mingliang Liu > > [HADOOP-13065] added a new interface for retrieving FS and FC Statistics. This jira is to refactor the code that maintains rack-aware read metrics to use the newly added StorageStatistics. Specially, > # Rack-aware read bytes metrics is mostly specific to HDFS. For example, local file system doesn't need that. We consider to move it from base FileSystemStorageStatistics to a dedicated HDFS specific StorageStatistics sub-class. > # We would have to develop an optimized thread-local mechanism to do this, to avoid causing a performance regression in HDFS stream performance. > Optionally, it would be better to simply move this to HDFS's existing per-stream {{ReadStatistics}} for now. As [HDFS-9579] states, ReadStatistics metrics are only accessible via {{DFSClient}} or {{DFSInputStream}}. Not something that application framework such as MR and Tez can get to. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org