XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • None
    • None

    Description

      Usernames containing backslash (e.g. down-level logon names) seem to work fine with Hadoop, except for chown.

      $ HADOOP_USER_NAME="FOOBAR\\testuser" hdfs dfs -mkdir /test/testfile1
      $ hdfs dfs -ls /test
      Found 1 items
      drwxrwxr-x   - FOOBAR\testuser supergroup          0 2017-02-10 12:49 /test/testfile1
      $ HADOOP_USER_NAME="testuser" hdfs dfs -mkdir /test/testfile2
      $ HADOOP_USER_NAME="hdfs" hdfs dfs -chown "FOOBAR\\testuser" /test/testfile2
      -chown: 'FOOBAR\testuser' does not match expected pattern for [owner][:group].
      Usage: hadoop fs [generic options] -chown [-R] [OWNER][:[GROUP]] PATH...
      $
      

      Attachments

        1. HADOOP-14075.001.patch
          2 kB
          Attila Bukor
        2. HADOOP-14075.002.patch
          2 kB
          Attila Bukor

        Activity

          People

            abukor Attila Bukor
            abukor Attila Bukor
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: