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... $