Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 73B71DFAF for ; Thu, 6 Sep 2012 15:03:08 +0000 (UTC) Received: (qmail 45519 invoked by uid 500); 6 Sep 2012 15:03:08 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 45359 invoked by uid 500); 6 Sep 2012 15:03:08 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 45350 invoked by uid 99); 6 Sep 2012 15:03:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2012 15:03:08 +0000 Date: Fri, 7 Sep 2012 02:03:08 +1100 (NCT) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1648114344.44682.1346943788241.JavaMail.jiratomcat@arcas> In-Reply-To: <2143764874.39354.1346860687800.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-3890) filecontext mkdirs doesn't apply umask as expected 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/HDFS-3890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449720#comment-13449720 ] Hudson commented on HDFS-3890: ------------------------------ Integrated in Hadoop-Mapreduce-trunk-Commit #2716 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2716/]) HDFS-3890. filecontext mkdirs doesn't apply umask as expected (Tom Graves via daryn) (Revision 1381606) Result = FAILURE daryn : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1381606 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/fs/Hdfs.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestFcHdfsSetUMask.java > filecontext mkdirs doesn't apply umask as expected > -------------------------------------------------- > > Key: HDFS-3890 > URL: https://issues.apache.org/jira/browse/HDFS-3890 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.23.3 > Reporter: Thomas Graves > Assignee: Thomas Graves > Priority: Critical > Fix For: 0.23.3, 3.0.0, 2.2.0-alpha > > Attachments: HDFS-3890.patch, HDFS-3890.patch, HDFS-3890.patch > > > I was attempting to set the umask of my fileContext and then do a mkdirs, but the umask wasn't applied as expected. > doneDirFc = FileContext.getFileContext(doneDirPrefixPath.toUri(), conf); > doneDirFc.setUMask(JobHistoryUtils.HISTORY_DONE_DIR_UMASK); > doneDirFc.mkdir(path, fsp, true); > It appears to be using the default umask set in the conf (fs.permissions.umask-mode) and overrode the umask I set in fileContext. I had the default umask set to 077 and set the filecontext umask to 007. The permissions on the directories it created were all rwx------. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira