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

Alan Burlison commented on HADOOP-12581:
----------------------------------------

There's this thing called POSIX that says how the things called UNIX are 
supposed to behave. It's so old it even predates CoreUtils ;-)

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/id.html

The commands used by ShellBasedIdMapping are id, awk, cut and getent. The first 
3 are all POSIX, and are used by ShellBasedIdMapping in a POSIX-compliant way.

getent isn't POSIX but it originated in Solaris - the engineering discussion 
started 18 March 1991 and the first draft manpage was on 21 March, which only 
supported /etc/passwd and /etc/group. getent was subsequently copied by Linux 
so I think it's safe to assume the Linux version is compatible with the Solaris 
one :-)


> ShellBasedIdMapping needs suport for Solaris
> --------------------------------------------
>
>                 Key: HADOOP-12581
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12581
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: security
>    Affects Versions: 2.7.1
>         Environment: Solaris
>            Reporter: Alan Burlison
>            Assignee: Alan Burlison
>
> ShellBasedIdMapping only supports Linux and OSX, support for Solaris needs 
> adding.
> From looking at the Linux support in ShellBasedIdMapping, the same sequences 
> of shell commands should work for Solaris as well so all that's probably 
> needed is to change the implementation of checkSupportedPlatform() to treat 
> Linux and Solaris the same way, plus possibly some renaming of other methods 
> to make it more obvious they are not Linux-only.



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

Reply via email to