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

Sachin Gupta commented on YARN-5201:
------------------------------------

Is this really an issue? if no, could anyone please help me with a solution 
because I am facing the same issue

> Apache Ranger Yarn policies are not used
> ----------------------------------------
>
>                 Key: YARN-5201
>                 URL: https://issues.apache.org/jira/browse/YARN-5201
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Rajendranath Rengan
>            Priority: Major
>
> Hi,
> I have setup Apache Ranger in hadoop cluster and defined yarn policies to 
> allow certain user to certain queue. 
> Idea is to have user 'x' submit spark job only to queue 'x' and not to queue 
> 'y'. when submitting spark job queue is mentioned as one of the arguments
> But user 'x' is able to submit spark job to queue 'y'
> Ranger audit logs shows the policy used is HDFS policy 
> Yarn policy is not used at all.
> I have enabled ranger plugin for YARN and defined yarn policy
> Yarn ACL is also set to true
> capacity scheduler setting as below:
> yarn.scheduler.capacity.queue-mappings=u:user1:user1,u:user2:userr2
> yarn.scheduler.capacity.root.acl_submit_applications=yarn,spark,hdfs
> yarn.scheduler.capacity.root.customer1.acl_administer_jobs=user1
> yarn.scheduler.capacity.root.customer1.acl_submit_applications=user1
> yarn.scheduler.capacity.root.customer1.capacity=50
> yarn.scheduler.capacity.root.customer1.maximum-capacity=100
> yarn.scheduler.capacity.root.customer1.state=RUNNING
> yarn.scheduler.capacity.root.customer1.user-limit-factor=1
> yarn.scheduler.capacity.root.customer2.acl_administer_jobs=user2
> yarn.scheduler.capacity.root.customer2.acl_submit_applications=user2
> yarn.scheduler.capacity.root.customer2.capacity=50
> yarn.scheduler.capacity.root.customer2.maximum-capacity=100
> yarn.scheduler.capacity.root.customer2.state=RUNNING
> yarn.scheduler.capacity.root.customer2.user-limit-factor=1
> yarn.scheduler.capacity.root.queues=user1,user2
> Thanks 
> Rengan



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to