hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12505) ShellBasedUnixGroupMapping should support group names with space
Date Sun, 25 Oct 2015 08:06:28 GMT

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

Harsh J commented on HADOOP-12505:
----------------------------------

FWIW, the JNI based groups plugin can grab the space-carrying groups accurately.

> ShellBasedUnixGroupMapping should support group names with space
> ----------------------------------------------------------------
>
>                 Key: HADOOP-12505
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12505
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>
> In a typical configuration, group name is obtained from AD through SSSD/LDAP. AD permits
group names with space (e.g. "Domain Users").
> Unfortunately, the present implementation of ShellBasedUnixGroupMapping parses the output
of shell command "id -Gn", and assumes group names are separated by space.
> This could be achieved by using a combination of shell scripts, for example,
> bash -c 'id -G weichiu | tr " " "\n" | xargs -I % getent group "%" | cut -d":" -f1'
> But I am still looking for a more compact form, and potentially more efficient one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message