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 A36F220049D for ; Wed, 9 Aug 2017 15:27:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1FDA168F77; Wed, 9 Aug 2017 13:27:05 +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 E7A5D168F82 for ; Wed, 9 Aug 2017 15:27:04 +0200 (CEST) Received: (qmail 22722 invoked by uid 500); 9 Aug 2017 13:27:04 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 22713 invoked by uid 99); 9 Aug 2017 13:27:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2017 13:27:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A8A081A0BE1 for ; Wed, 9 Aug 2017 13:27:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TUs6cyx3976P for ; Wed, 9 Aug 2017 13:27:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5281D5F3CE for ; Wed, 9 Aug 2017 13:27:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5A87AE0E0A for ; Wed, 9 Aug 2017 13:27:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5FB9024162 for ; Wed, 9 Aug 2017 13:27:00 +0000 (UTC) Date: Wed, 9 Aug 2017 13:27:00 +0000 (UTC) From: "Doroszlai, Attila (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-21116) Setting yarn.node-labels.fs-store.root-dir to a "path" changes the permission of the "root path" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 09 Aug 2017 13:27:05 -0000 [ https://issues.apache.org/jira/browse/AMBARI-21116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16119892#comment-16119892 ] Doroszlai, Attila commented on AMBARI-21116: -------------------------------------------- [~aonishuk], found one more problem with [this commit|https://github.com/apache/ambari/commit/4405d4982842a729ebfbd4c000c5ffb023abbbb5]. In HDP 2.X recursive permissions were eliminated for the wrong directory: {{mapreduce_jobhistory_done_dir}} instead of {{node_labels_dir}}. Compare: {noformat:title=YARN/2.1.0.2.0/package/scripts/yarn.py} params.HdfsResource(params.mapreduce_jobhistory_done_dir, type="directory", action="create_on_execute", owner=params.mapred_user, group=params.user_group, - change_permissions_for_parents=True, mode=0777 ) {noformat} with: {noformat:title=YARN/3.0.0.3.0/package/scripts/yarn.py} params.HdfsResource(params.node_labels_dir, type="directory", action="create_on_execute", - change_permissions_for_parents=True, owner=params.yarn_user, group=params.user_group, mode=0700 ) {noformat} This causes MapReduce History Server to stop after startup, because it cannot create {{/mr-history/tmp}} due to wrong permissions on {{/mr-history}}: {noformat:title=trunk} drwxr-xr-x - hdfs hdfs 0 2017-08-09 11:54 /mr-history drwxrwxrwx - mapred hadoop 0 2017-08-09 11:54 /mr-history/done {noformat} {noformat:title=branch-2.5} drwxrwxrwx - mapred hadoop 0 2017-08-09 12:26 /mr-history drwxrwxrwx - mapred hadoop 0 2017-08-09 12:26 /mr-history/done drwxrwxrwt - mapred hadoop 0 2017-08-09 12:26 /mr-history/tmp {noformat} {noformat:title=mapred-mapred-historyserver.log} 2017-08-09 11:54:20,957 INFO service.AbstractService (AbstractService.java:noteFailure(272)) - Service org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Error creating intermediate done directory ... Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=mapred, access=WRITE, inode="/mr-history/tmp":hdfs:hdfs:drwxr-xr-x ... 2017-08-09 11:54:20,971 INFO util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status -1 {noformat} > Setting yarn.node-labels.fs-store.root-dir to a "path" changes the permission of the "root path" > ------------------------------------------------------------------------------------------------ > > Key: AMBARI-21116 > URL: https://issues.apache.org/jira/browse/AMBARI-21116 > Project: Ambari > Issue Type: Bug > Reporter: Sumana Sathish > Assignee: Andrew Onischuk > Priority: Critical > Fix For: 3.0.0 > > > 1. Set the following configs to run nodeLabels test via Ambari Rest Call > {code} > yarnProperties = {'yarn.acl.enable': 'true', > 'yarn.node-labels.enabled' : "True", > 'yarn.node-labels.fs-store.root-dir': NODE_LABEL_STORE_DIR, > 'yarn.admin.acl': yarn_user + ',' + qa_user} > {code} > where NODE_LABEL_STORE_DIR = "/tmp/node-labels" > 2Restart ResourceManager and NodeManagers via ambari > 3. After running these commands, /tmp directory's permission changes to > [drwx------ - yarn hadoop] from [drwxrwxrwx - hdfs hadoop] causing other tests to fail since it cannot access /tmp -- This message was sent by Atlassian JIRA (v6.4.14#64029)