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 97A11200B69 for ; Sat, 20 Aug 2016 13:33:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 96550160ABB; Sat, 20 Aug 2016 11:33:23 +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 DE2F1160AAA for ; Sat, 20 Aug 2016 13:33:22 +0200 (CEST) Received: (qmail 14408 invoked by uid 500); 20 Aug 2016 11:33:20 -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 14012 invoked by uid 99); 20 Aug 2016 11:33:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2016 11:33:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 86AA12C014F for ; Sat, 20 Aug 2016 11:33:20 +0000 (UTC) Date: Sat, 20 Aug 2016 11:33:20 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-13525) Optimize uses of FS operations in the ASF analysis frameworks, MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 Aug 2016 11:33:23 -0000 Steve Loughran created HADOOP-13525: --------------------------------------- Summary: Optimize uses of FS operations in the ASF analysis frameworks, Key: HADOOP-13525 URL: https://issues.apache.org/jira/browse/HADOOP-13525 Project: Hadoop Common Issue Type: Sub-task Components: fs, fs/s3 Affects Versions: 2.7.2 Reporter: Steve Loughran Assignee: Steve Loughran Review uses of the FS APIs in applications using the Hadoop FS API to access filesystems; identify suboptimal uses and tune them for better performance against HDFS and object stores * Assume arbitrary Hadoop 2.x releases: make no changes which are known to make operations on older versions of Hadoop slower * Do propose those changes which deliver speedups in later versions of Hadoop, while not impacting older versions, or risk of causing scalability problems. * Add more tests, especially scalable ones which also display metrics. * Use standard benchmarks and optimization tools to identify hotspots. * Use FS behaviour as verified in the FS contract tests as evidence that filesystems correctly implement the Hadoop FS APIs. If a use of an API call is made which hints at the expectation of different/untested behaviours, leave alone and add new tests to the Hadoop FS contract to determine cross-FS semantics. * Focus on the startup, split calculation and directory scanning operations: the ones which slow down entire queries. * Eliminate use of {{isDirectory()}}, {{getLength()}}, {{exists()}} if a followon operation ({{getStatus()}},{{delete()}}, ... makes the use redundant. * Assume that {{FileStatus}} entries are not cached; the cost of creating them is 1 RPC call against HDFS, 1+ HTTPS call against object stores. * Locate calls to the listing operations, identify speedups, especially on recursive directory scans. * Identify suboptimal seek patterns (backwards as well as forwards) and attempt to reduce/eliminate through reordering and result caching. * Try to reuse the results of previous operations (e.g {{FileStatus}} instances) in follow-on calls. * Document best practises identified and implemented. -- 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