Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3098

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.16.0, 0.16.1
    • 0.16.2
    • fs
    • None
    • chown and chgrp commands allow more flexible names compared to 0.16. See 'fs -help chown'. Inform Users : YES.

    Description

      :~$ 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

      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.

      Attachments

        1. HADOOP-3098.patch
          3 kB
          Raghu Angadi
        2. HADOOP-3098.patch
          4 kB
          Raghu Angadi

        Issue Links

          Activity

            People

              rangadi Raghu Angadi
              knoguchi Koji Noguchi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: