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

dfs -chown does not like "+" plus sign in user name

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.5-alpha
    • 3.4.0
    • fs
    • None
    • Reviewed

    Description

      I intend to set user and group:

      User: MYCOMPANY+marc.villacorta
      Group: hadoop

      where '+' is what we use as a winbind separator.

      And this is what I get:

      sudo -u hdfs hadoop fs -touchz /tmp/test.txt
      sudo -u hdfs hadoop fs -chown MYCOMPANY+marc.villacorta:hadoop /tmp/test.txt
      -chown: 'MYCOMPANY+marc.villacorta:hadoop' does not match expected pattern for [owner][:group].
      Usage: hadoop fs [generic options] -chown [-R] [OWNER][:[GROUP]] PATH...
      

      I am using version: 2.0.0-cdh4.3.0

      Quote source:

      winbind separator
      The winbind separator option allows you to specify how NT domain names
      and user names are combined into unix user names when presented to
      users. By default, winbindd will use the traditional '\' separator so
      that the unix user names look like DOMAIN\username. In some cases this
      separator character may cause problems as the '\' character has
      special meaning in unix shells. In that case you can use the winbind
      separator option to specify an alternative separator character. Good
      alternatives may be '/' (although that conflicts with the unix
      directory separator) or a '+ 'character. The '+' character appears to
      be the best choice for 100% compatibility with existing unix
      utilities, but may be an aesthetically bad choice depending on your
      taste.

      Default: winbind separator = \

      Example: winbind separator = +

      Attachments

        1. HADOOP-9851.01.patch
          2 kB
          Andras Bokor
        2. HADOOP-9851.02.patch
          1 kB
          Andras Bokor

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            boky01 Andras Bokor
            h0tbird Marc Villacorta
            Votes:
            2 Vote for this issue
            Watchers:
            10 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment