hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Badger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7430) User and Group mapping are incorrect in docker container
Date Wed, 08 Nov 2017 23:07:01 GMT

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

Eric Badger commented on YARN-7430:
-----------------------------------

{quote}
For users on LDAP, there is no good way to populate container with user and group information.
{quote}
Additionally, bind-mounting the /var/run/nscd will allow the container to use the host's ldap
configuration to lookup users. That way, there won't be a cache miss everytime a new container
is started up. We could setup each container to correctly use ldap, but that sounds like a
waste because of all of the hits on the ldap server. That's why entering the container as
a uid:gid pair will give you the username even if they don't exist in the image. Otherwise,
the uid:gid pair won't have an associated username and the MRAppMaster will fail. This was
discussed shortly in [YARN-4266|https://issues.apache.org/jira/browse/YARN-4266?focusedCommentId=16076756&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16076756]

> User and Group mapping are incorrect in docker container
> --------------------------------------------------------
>
>                 Key: YARN-7430
>                 URL: https://issues.apache.org/jira/browse/YARN-7430
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: security, yarn
>    Affects Versions: 2.9.0, 3.0.0
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>            Priority: Blocker
>         Attachments: YARN-7430.001.patch
>
>
> In YARN-4266, the recommendation was to use -u [uid]:[gid] numeric values to enforce
user and group for the running user.  In YARN-6623, this translated to --user=test --group-add=group1.
 The code no longer enforce group correctly for launched process.  
> In addition, the implementation in YARN-6623 requires the user and group information
to exist in container to translate username and group to uid/gid.  For users on LDAP, there
is no good way to populate container with user and group information. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message