FAQ
dfs -chown does not like "_" underscore in user name
----------------------------------------------------

Key: HADOOP-3098
URL: https://issues.apache.org/jira/browse/HADOOP-3098
Project: Hadoop Core
Issue Type: Bug
Components: fs
Affects Versions: 0.16.1, 0.16.0
Reporter: Koji Noguchi
Priority: Blocker
Fix For: 0.16.2


:~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
chown: 'aaa_bbb' does not match expected pattern for [owner][:group].

in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?

I couldn't find any standard, but in Solaris10, it's defined as

http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view

bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.



--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Raghu Angadi (JIRA) at Mar 26, 2008 at 7:29 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582405#action_12582405 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    Sure. There was no particular reason to restrict it to alphanumberic only. Of course we don't need to limit it to 8 characters.

    One problem is period(.) : what does 'chown raghu.user file' mean, is 'user' group name or part of the user name? On linux it will set the file onwer to raghu and group owner to user. Also these os' have advantage of being able to validate it some this a known username or not (from /etc/passwd). All we do now is to match a regex.

    What about spaces?

    I can propose a regex here.

    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 26, 2008 at 7:31 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582405#action_12582405 ]

    rangadi edited comment on HADOOP-3098 at 3/26/08 12:27 PM:
    ----------------------------------------------------------------

    Sure. There was no particular reason to restrict it to alphanumberic only. Of course we don't need to limit it to 8 characters.

    One problem is period(.) : what does 'chown raghu.user file' mean, is 'user' group name or part of the user name? On linux it will set the file onwer to raghu and group owner to user. Also these os' have advantage of being able to validate if some name a known username or not (from /etc/passwd). All we do now is to match a regex.

    What about spaces?

    I can propose a regex here.


    was (Author: rangadi):
    Sure. There was no particular reason to restrict it to alphanumberic only. Of course we don't need to limit it to 8 characters.

    One problem is period(.) : what does 'chown raghu.user file' mean, is 'user' group name or part of the user name? On linux it will set the file onwer to raghu and group owner to user. Also these os' have advantage of being able to validate it some this a known username or not (from /etc/passwd). All we do now is to match a regex.

    What about spaces?

    I can propose a regex here.

    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Tsz Wo (Nicholas), SZE (JIRA) at Mar 26, 2008 at 8:09 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582417#action_12582417 ]

    Tsz Wo (Nicholas), SZE commented on HADOOP-3098:
    ------------------------------------------------

    I suggest we don't restrict user and group names at all but provide a way to escape the special characters in the commands, for example "raghu\.user" .
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 26, 2008 at 8:47 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582423#action_12582423 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    Yes.

    FWIW : 'fs -help chown' currently says : {noformat}
    [...] The owner and group names can only
    contain digits and alphabet. These names are case sensitive.
    {noformat}
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Owen O'Malley (JIRA) at Mar 26, 2008 at 10:33 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582456#action_12582456 ]

    Owen O'Malley commented on HADOOP-3098:
    ---------------------------------------

    -1 on this for 16.2, since it doesn't seem to be a bug.

    I think for 17 we should decide what the valid characters in group and user names are. Given kerberos, I think it should likely consist of characters from:

    [a-zA-Z0-9_@./]

    Thoughts?
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Robert Chansler (JIRA) at Mar 27, 2008 at 12:03 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Robert Chansler updated HADOOP-3098:
    ------------------------------------

    Assignee: Raghu Angadi

    Don, Lenny, Nigel, Koji and Rob: Exactly dots, hyphens and underscores for 16.2 and 17.

    And a unit test!

    And tweak the documentation.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Robert Chansler (JIRA) at Mar 27, 2008 at 12:03 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Robert Chansler updated HADOOP-3098:
    ------------------------------------


    Don, Lenny, Nigel, Koji and Rob: Exactly dots, hyphens and underscores for 16.2 and 17.

    And a unit test!

    And tweak the documentation.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 3:07 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582506#action_12582506 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    Here is the proposal:

    Period (.) no longer separates user name and group (so raghu.user just specifies a user name). Linux allows it but it Solaris and others does not seem to. We will explicitly mention it in help message. We could escape it as Nicholas suggested but it might be confusing to the user any way...

    Owen, should we include @ and '/' now? We could always add these later.

    With these patch is going to be pretty simple.


    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 6:31 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Attachment: HADOOP-3098.patch

    Patch attached. The name can consists of {{[-_.a-zA-Z0-9]}}.

    Normal chown does not talk about any escaping. That's what I meant when I said it might confuse the users.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 6:35 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582525#action_12582525 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    btw, how does this affect international users?
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Allen Wittenauer (JIRA) at Mar 27, 2008 at 2:35 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582663#action_12582663 ]

    Allen Wittenauer commented on HADOOP-3098:
    ------------------------------------------

    If we're going to fix this, why don't we just go ahead and do / and @ for Kerberos now rather than require another patch later?

    As to i18n, AFAIK, POSIX doesn't dictate what characters are allowed in the pw_name field of the passwd struct. Depending upon the age of the source, it may or may not be limited to 8 chars.

    A brief search that no one other than Sun in recent releases of Solaris seem to document just what the allowed characters are on the passwd username field, despite the fact that pwck is in quite a few OSes, mainly SysV variants. The vast majority list just restrictions. (first char needs to be a letter, don't use : are the two most common).

    This likely means that the above range will break for i18n. It may be worthwhile to peruse some login code (login itself, ssh, rsh, telnet, etc,) to see how they handle it.

    That said, the above range should be 'good enough' to cover a very large percentage of the cases.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 4:23 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582719#action_12582719 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------
    If we're going to fix this, why don't we just go ahead and do / and @ for Kerberos now rather than require another patch later?
    true. I was not sure if these _may_ be required or _will_ be required.

    Do we really want dot(.)? Unlike HDFS, we don't use system call to for LocalFS. So it still goes through shell command.. so '.' will still be treated as separation between username and group.. just adds to user confusion. If we do include dot, I need to update the documentation a little bit more.


    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Allen Wittenauer (JIRA) at Mar 27, 2008 at 5:29 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582743#action_12582743 ]

    Allen Wittenauer commented on HADOOP-3098:
    ------------------------------------------

    I'm not sure why period (.) would be an issue. chown and chgrp use colons(:) for user and group separation. Periods aren't recommended for usage due to how mail servers may interpret them, but I don't know of any standard UNIX commands that choke on it.


    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 5:33 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582746#action_12582746 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------
    chown and chgrp use colons( for user and group separation.
    Linux (Fedora, and may be others) allows '.' also to separate username and group. I agree it would be bad practice for a user to use '.' for separation.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 5:35 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582747#action_12582747 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    btw, the 'chown' command does not choke on it. It might just surprise the user that uses '.' for user names.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Allen Wittenauer (JIRA) at Mar 27, 2008 at 5:56 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582749#action_12582749 ]

    Allen Wittenauer commented on HADOOP-3098:
    ------------------------------------------

    That must be a GNU-ism. As they say, GNU is Not UNIX.

    (and looking at the man page, I don't see support for . being a separator documented)
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Allen Wittenauer (JIRA) at Mar 27, 2008 at 5:57 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582751#action_12582751 ]

    Allen Wittenauer commented on HADOOP-3098:
    ------------------------------------------

    Ahh...

    http://www.opengroup.org/onlinepubs/009695399/utilities/chown.html

    ... which also happens to have the answer to the question of what are valid user name characters.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 8:09 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Attachment: HADOOP-3098.patch

    Updated the patch to allow '@' and '/'. Documentation includes an explicit warning for Linux users (may be 90+% of hadoop users?) :
    {noformat}
    $ bin/hadoop fs -Dfs.default.name=file:/// -help chown
    -chown [-R] [OWNER][:[GROUP]] PATH...
    Changes owner and group of a file.
    This is similar to shell's chown with a few exceptions.

    -R modifies the files recursively. This is the only option
    currently supported.

    If only owner or group is specified then only owner or
    group is modified.

    The owner and group names may only cosists of digits, alphabet,
    and any of '-_.@/' i.e. [-_.@/a-zA-Z0-9]. The names are case
    sensitive.

    WARNING: Avoid using '.' to separate user name and group though
    Linux allows it. If user names have dots in them and you are
    using local file system, you might see surprising results since
    shell command 'chown' is used for local files.
    {noformat}

    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Tsz Wo (Nicholas), SZE (JIRA) at Mar 27, 2008 at 9:17 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582788#action_12582788 ]

    Tsz Wo (Nicholas), SZE commented on HADOOP-3098:
    ------------------------------------------------

    +1 codes look good

    minor comment: it would be better to use allowedChars to construct the help message.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 9:35 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582797#action_12582797 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    Thanks Nicholas. Regd using 'alloedChars', currently long help in a different file and even with that, it needs to be interpreted by the person that changes the documentation (like now). Its ok for now I think.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 27, 2008 at 9:51 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Status: Patch Available (was: Open)
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.1, 0.16.0
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hadoop QA (JIRA) at Mar 28, 2008 at 3:30 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582888#action_12582888 ]

    Hadoop QA commented on HADOOP-3098:
    -----------------------------------

    -1 overall. Here are the results of testing the latest attachment
    http://issues.apache.org/jira/secure/attachment/12378739/HADOOP-3098.patch
    against trunk revision 619744.

    @author +1. The patch does not contain any @author tags.

    tests included +1. The patch appears to include 5 new or modified tests.

    javadoc -1. The javadoc tool appears to have generated 1 warning messages.

    javac +1. The applied patch does not generate any new javac compiler warnings.

    release audit +1. The applied patch does not generate any new release audit warnings.

    findbugs +1. The patch does not introduce any new Findbugs warnings.

    core tests +1. The patch passed core unit tests.

    contrib tests +1. The patch passed contrib unit tests.

    Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2083/testReport/
    Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2083/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
    Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2083/artifact/trunk/build/test/checkstyle-errors.html
    Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2083/console

    This message is automatically generated.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 28, 2008 at 5:12 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Status: Patch Available (was: Open)
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.1, 0.16.0
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 28, 2008 at 5:12 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Status: Open (was: Patch Available)
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.1, 0.16.0
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hadoop QA (JIRA) at Mar 28, 2008 at 4:14 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583079#action_12583079 ]

    Hadoop QA commented on HADOOP-3098:
    -----------------------------------

    +1 overall. Here are the results of testing the latest attachment
    http://issues.apache.org/jira/secure/attachment/12378739/HADOOP-3098.patch
    against trunk revision 619744.

    @author +1. The patch does not contain any @author tags.

    tests included +1. The patch appears to include 5 new or modified tests.

    javadoc +1. The javadoc tool did not generate any warning messages.

    javac +1. The applied patch does not generate any new javac compiler warnings.

    release audit +1. The applied patch does not generate any new release audit warnings.

    findbugs +1. The patch does not introduce any new Findbugs warnings.

    core tests +1. The patch passed core unit tests.

    contrib tests +1. The patch passed contrib unit tests.

    Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2086/testReport/
    Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2086/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
    Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2086/artifact/trunk/build/test/checkstyle-errors.html
    Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2086/console

    This message is automatically generated.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 28, 2008 at 5:26 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    I just committed this.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hudson (JIRA) at Mar 29, 2008 at 12:10 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583308#action_12583308 ]

    Hudson commented on HADOOP-3098:
    --------------------------------

    Integrated in Hadoop-trunk #445 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/445/])
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Rob Weltman (JIRA) at Mar 30, 2008 at 10:50 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583493#action_12583493 ]

    Rob Weltman commented on HADOOP-3098:
    -------------------------------------

    For user-facing UI like the "help" output from a command, can we spend a few minutes making the text grammatically correct before checking code in?

    "The owner and group names may only cosists of digits, alphabet"
    ->
    "may only consist of digits, alphabetical characters,"

    For future reference, anyway.

    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 31, 2008 at 4:14 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583733#action_12583733 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------
    an we spend a few minutes making the text grammatically correct before checking code in?
    I wrote it and spent little more than a few munites... and I wanted to others to read as well. Thats why I included the whole text in a comment above.


    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 31, 2008 at 4:14 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583733#action_12583733 ]

    rangadi edited comment on HADOOP-3098 at 3/31/08 9:10 AM:
    ---------------------------------------------------------------
    an we spend a few minutes making the text grammatically correct before checking code in?
    I wrote it and spent quite a bit more than a few munites... and I wanted to others to read as well. Thats why I included the whole text in a comment above.



    was (Author: rangadi):
    an we spend a few minutes making the text grammatically correct before checking code in?
    I wrote it and spent little more than a few munites... and I wanted to others to read as well. Thats why I included the whole text in a comment above.


    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Mar 31, 2008 at 4:22 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583739#action_12583739 ]

    Raghu Angadi commented on HADOOP-3098:
    --------------------------------------

    Rob, I am assuming the one you corrected is the only correction required. Once you confirm, I will commit the change.

    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Raghu Angadi (JIRA) at Apr 17, 2008 at 1:04 am
    [ https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Raghu Angadi updated HADOOP-3098:
    ---------------------------------

    Release Note: chown and chgrp commands allow more flexible names compared to 0.16. See 'fs -help chown'. Inform Users : YES.
    dfs -chown does not like "_" underscore in user name
    ----------------------------------------------------

    Key: HADOOP-3098
    URL: https://issues.apache.org/jira/browse/HADOOP-3098
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0, 0.16.1
    Reporter: Koji Noguchi
    Assignee: Raghu Angadi
    Priority: Blocker
    Fix For: 0.16.2

    Attachments: HADOOP-3098.patch, HADOOP-3098.patch


    :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
    chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
    in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
    I couldn't find any standard, but in Solaris10, it's defined as
    http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
    bq. The login (login) and role (role) fields accept a string of no more than eight bytes consisting of characters from the set of alphabetic characters, numeric characters, period (.), underscore (_), and hyphen (-). The first character should be alphabetic and the field should contain at least one lower case alphabetic character. A warning message is displayed if these restrictions are not met.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedMar 26, '08 at 7:11p
activeApr 17, '08 at 1:04a
posts33
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Raghu Angadi (JIRA): 33 posts

People

Translate

site design / logo © 2022 Grokbase