hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7214) Hadoop /usr/bin/groups equivalent
Date Thu, 07 Apr 2011 16:13:05 GMT

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

Aaron T. Myers commented on HADOOP-7214:

Thanks a lot for the review, Daryn. I'll upload a patch shortly addressing your comments.

bq. There's no need to catch an illegal arg exception. The caller will catch the exception
and print the usage.

Good catch. Will fix.

bq. Should print out the line for the user immediately, instead of batching up all the output
for all users and printing it all at the same time. An exception for one user would prevent
any output.

Good point. Will fix.

bq. However, the unix "groups" command only takes one argument so we may want to conform to

At least on my system (Ubuntu Maverick) this isn't the case:

$ /usr/bin/groups atm hdfs mapred
atm : atm adm dialout cdrom plugdev lpadmin admin sambashare
hdfs : hdfs hadoop
mapred : mapred hadoop

bq. Make sure it outputs a posix-like error of "groups: foo: no such user".

Will do.

> Hadoop /usr/bin/groups equivalent
> ---------------------------------
>                 Key: HADOOP-7214
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7214
>             Project: Hadoop Common
>          Issue Type: New Feature
>    Affects Versions: 0.23.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: hadoop-7214.0.txt, hadoop-7214.1.txt
> Since user -> groups resolution is done on the NN and JT machines, there should be
a way for users to determine what groups they're a member of from the NN's and JT's perspective.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message