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 276B0200BBB for ; Thu, 10 Nov 2016 15:29:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 25BC0160B10; Thu, 10 Nov 2016 14:29:00 +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 750CD160AF6 for ; Thu, 10 Nov 2016 15:28:59 +0100 (CET) Received: (qmail 10021 invoked by uid 500); 10 Nov 2016 14:28:58 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 10004 invoked by uid 99); 10 Nov 2016 14:28:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 14:28:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 659C22C4C70 for ; Thu, 10 Nov 2016 14:28:58 +0000 (UTC) Date: Thu, 10 Nov 2016 14:28:58 +0000 (UTC) From: "Bibin A Chundatt (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-5867) DirectoryCollection#checkDirs can cause incorrect permission of nmlocal dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Nov 2016 14:29:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15653928#comment-15653928 ] Bibin A Chundatt edited comment on YARN-5867 at 11/10/16 2:28 PM: ------------------------------------------------------------------ [~naganarasimha_gr@apache.org] Not related to appcache.. This jira is forconfigured nmlocaldir permission {quote} User with which NM is run ? {quote} NM started user umask is 077 was (Author: bibinchundatt): [~naganarasimha_gr@apache.org] Not related to appcache.. This i for root directory. configured nmlocaldir. {quote} User with which NM is run ? {quote} NM started user umask is 077 > DirectoryCollection#checkDirs can cause incorrect permission of nmlocal dir > --------------------------------------------------------------------------- > > Key: YARN-5867 > URL: https://issues.apache.org/jira/browse/YARN-5867 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Bibin A Chundatt > Assignee: Bibin A Chundatt > > Steps to reproduce > =============== > # Set umask to 077 for user > # Start nodemanager with nmlocal dir configured > nmlocal dir permission is *755* > {{LocalDirsHandlerService#serviceInit}} > {code} > FsPermission perm = new FsPermission((short)0755); > boolean createSucceeded = localDirs.createNonExistentDirs(localFs, perm); > createSucceeded &= logDirs.createNonExistentDirs(localFs, perm); > {code} > # After startup delete the nmlocal dir and wait for {{MonitoringTimerTask}} to run (simulation using delete) > # Now check the permission of {{nmlocal dir}} will be *700* > *Root Cause* > {{DirectoryCollection#testDirs}} checks as following > {code} > // create a random dir to make sure fs isn't in read-only mode > verifyDirUsingMkdir(testDir); > {code} > which cause a new Random directory to be create in {{localdir}} using > {{DiskChecker.checkDir(dir)}} -> {{!mkdirsWithExistsCheck(dir)}} causing the nmlocal dir to be created with wrong permission. *700* > Few application fail to container launch due to permission denied. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org