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 03FC3200B5E for ; Wed, 27 Jul 2016 03:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0279F160AA6; Wed, 27 Jul 2016 01:54:22 +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 70FCC160AA4 for ; Wed, 27 Jul 2016 03:54:21 +0200 (CEST) Received: (qmail 64448 invoked by uid 500); 27 Jul 2016 01:54:20 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 64430 invoked by uid 99); 27 Jul 2016 01:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 01:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8990B2C0059 for ; Wed, 27 Jul 2016 01:54:20 +0000 (UTC) Date: Wed, 27 Jul 2016 01:54:20 +0000 (UTC) From: "Rui Li (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-14323) Reduce number of FS permissions and redundant FS operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 27 Jul 2016 01:54:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15394925#comment-15394925 ] Rui Li commented on HIVE-14323: ------------------------------- I see. Thanks Steve! > Reduce number of FS permissions and redundant FS operations > ----------------------------------------------------------- > > Key: HIVE-14323 > URL: https://issues.apache.org/jira/browse/HIVE-14323 > Project: Hive > Issue Type: Improvement > Reporter: Rajesh Balamohan > Assignee: Rajesh Balamohan > Priority: Minor > Attachments: HIVE-14323.1.patch, HIVE-14323.2.patch > > > Some examples are given below. > 1. When creating stage directory, FileUtils sets the directory permissions by running a set of chgrp and chmod commands. In systems like S3, this would not be relevant. > 2. In some cases, fs.delete() is followed by fs.exists(). In this case, it might be redundant to check for exists() (lookup ops are expensive in systems like S3). -- This message was sent by Atlassian JIRA (v6.3.4#6332)