ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4626) "Capacity Scheduler" section in Ambari does not allow ACL value of "user group" with spaces
Date Wed, 20 May 2015 12:59:02 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-4626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14552273#comment-14552273
] 

Hudson commented on AMBARI-4626:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #2656 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2656/])
Revert "Revert "Revert "AMBARI-4626. "Capacity Scheduler" section in Ambari does not allow
ACL value of "user group" with spaces (aonishuk)""" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f97890f952d48672563808824a26f31448c3e535)
* ambari-web/app/data/HDP2.2/site_properties.js
* ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/configuration/hdfs-site.xml.orig
* ambari-web/app/data/HDP2.2/site_properties.js.orig
* ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/hbase-site.xml
* ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/configuration/core-site.xml
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/core-site.xml
* ambari-common/src/main/python/resource_management/libraries/providers/properties_file.py
* ambari-common/src/main/python/resource_management/libraries/providers/xml_config.py
* ambari-common/src/main/python/resource_management/libraries/providers/modify_properties_file.py
* ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/configuration/hdfs-site.xml


> "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: 1.5.0, 2.1.0, 2.0.1
>
>         Attachments: AMBARI-4626.patch, AMBARI-4626_2.0.1.patch, AMBARI-4626_trunk.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:
> <property>
> <name>yarn.scheduler.capacity.root.acl_submit_applications</name>
> <value> </value>
> </property>
> <property>
> <name>yarn.scheduler.capacity.root.acl_administer_queue</name>
> <value> </value>
> </property>
>  <property>
>     <name>yarn.scheduler.capacity.root.default.acl_administer_queue</name>
>     <value>user group</value>
>   </property>
>  <property>
>     <name>yarn.scheduler.capacity.root.default.acl_submit_applications</name>
>     <value> group</value>
>   </property>
> 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)

Mime
View raw message