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

Kinga Marton commented on YARN-9886:
------------------------------------

In the attached patch 001 I have addressed the following issues:
 * changed the id pattern from {{userid=<userId>}} to {{u=<userId>}}
 * added property for enabling this feature
 * added a property for specifying the users who can do such operation
 * added unit tests

I also wanted to add a small information to the documentation, but I didn't 
found the proper place for it. I was searching for a part where the scheduler 
common things are documented. 

> Queue mapping based on userid passed through application tag
> ------------------------------------------------------------
>
>                 Key: YARN-9886
>                 URL: https://issues.apache.org/jira/browse/YARN-9886
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: scheduler
>            Reporter: Kinga Marton
>            Assignee: Kinga Marton
>            Priority: Major
>         Attachments: YARN-9886-WIP.patch, YARN-9886.001.patch
>
>
> There are situations when the real submitting user differs from the user what 
> arrives to YARN. For example in case of a Hive application when Hive 
> impersonation is turned off, the hive queries will run as Hive user and the 
> mapping is done based on this username. Unfortunately in this case YARN 
> doesn't have any information about the real user and there are cases when the 
> customer may want to map this applications to the real submitting user's 
> queue instead of the Hive one.
> For this cases if they would pass the username in the application tag we may 
> read it and use that one during the queue mapping, if that user has rights to 
> run on the real user's queue.  
> [~sunilg] please correct me if I missed something.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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