Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AD6017E18 for ; Mon, 18 May 2015 20:08:01 +0000 (UTC) Received: (qmail 21471 invoked by uid 500); 18 May 2015 20:08:01 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 21439 invoked by uid 500); 18 May 2015 20:08:01 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 21426 invoked by uid 99); 18 May 2015 20:08:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 20:08:01 +0000 Date: Mon, 18 May 2015 20:08:01 +0000 (UTC) From: "Jeff Sposetti (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-4626) "Capacity Scheduler" section in Ambari does not allow ACL value of "user group" with spaces 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/AMBARI-4626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Sposetti updated AMBARI-4626: ---------------------------------- Affects Version/s: 2.0.0 > "Capacity Scheduler" section in Ambari does not allow ACL value of "user group" with spaces > ------------------------------------------------------------------------------------------- > > Key: AMBARI-4626 > URL: https://issues.apache.org/jira/browse/AMBARI-4626 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 1.4.1, 2.0.0 > Reporter: Andrii Tkach > Assignee: Andrii Tkach > Fix For: 2.1.0, 2.0.1 > > Attachments: AMBARI-4626.patch > > > PROBLEM: While adding the following properties with spaces through the "Capacity Scheduler" section of Ambari (ambari-server-1.4.1 with HDP 2.0 GA), the values are cutoff from the space onward. > yarn.scheduler.capacity.root.default.acl_administer_jobs=user group > yarn.scheduler.capacity.root.default.acl_submit_jobs= group > yarn.scheduler.capacity.root.acl_administer_queue= > yarn.scheduler.capacity.root.acl_administer_queue= > So the objective is: > > yarn.scheduler.capacity.root.acl_submit_applications > > > > yarn.scheduler.capacity.root.acl_administer_queue > > > > yarn.scheduler.capacity.root.default.acl_administer_queue > user group > > > yarn.scheduler.capacity.root.default.acl_submit_applications > group > > The space is needed to use the format per > http://hadoop.apache.org/docs/r2.2.0/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html > "Note: An ACL is of the form user1, user2spacegroup1, group2." > STEPS TO REPRODUCE: > 1. Go to Yarn configs in Ambari. > 2. Try to add the property > yarn.scheduler.capacity.root.acl_submit_applications=user1 group1 > 3. Save the property, after saving, it will show > yarn.scheduler.capacity.root.acl_submit_applications=user1 > 4. Also if a property with a value of single space needs to be added like > yarn.scheduler.capacity.root.acl_submit_applications= > after the save, Ambari will no longer show the property in the list or update the capacity-scheduler.xml correctly. I am not sure why Yarn needs a "space" to imply that no one is allowed to submit to the queue. > WORK AROUND: Manually edit capacity-scheduler.xml and > yarn rmadmin -refreshAdminAcls > yarn rmadmin -refreshServiceAcl > yarn rmadmin -refreshQueues > EXPECTED BEHAVIOR: Should be able to specify properties through Ambari. -- This message was sent by Atlassian JIRA (v6.3.4#6332)