Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8C3C106AE for ; Sun, 17 May 2015 19:11:00 +0000 (UTC) Received: (qmail 13226 invoked by uid 500); 17 May 2015 19:11:00 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 13168 invoked by uid 500); 17 May 2015 19:11:00 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 12943 invoked by uid 99); 17 May 2015 19:11:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 May 2015 19:11:00 +0000 Date: Sun, 17 May 2015 19:11:00 +0000 (UTC) From: "Varun Saxena (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-11347) Inconsistent enforcement of umask between FileSystem and FileContext interacting with local file system. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Varun Saxena updated HADOOP-11347: ---------------------------------- Attachment: HADOOP-11347.03.patch > Inconsistent enforcement of umask between FileSystem and FileContext interacting with local file system. > -------------------------------------------------------------------------------------------------------- > > Key: HADOOP-11347 > URL: https://issues.apache.org/jira/browse/HADOOP-11347 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.7.0 > Reporter: Chris Nauroth > Assignee: Varun Saxena > Attachments: HADOOP-11347.001.patch, HADOOP-11347.002.patch, HADOOP-11347.03.patch > > > The {{FileSystem}} and {{FileContext}} APIs are inconsistent in enforcement of umask for newly created directories. {{FileContext}} utilizes configuration property {{fs.permissions.umask-mode}} and runs a separate {{chmod}} call to guarantee bypassing the process umask. This is the expected behavior for Hadoop as discussed in the documentation of {{fs.permissions.umask-mode}}. For the equivalent {{FileSystem}} APIs, it does not use {{fs.permissions.umask-mode}}. Instead, the permissions end up getting controlled by the process umask. -- This message was sent by Atlassian JIRA (v6.3.4#6332)