Details
Description
ravi@localhost:~$ hadoop dfs -chgrp abcd /; echo $?
chgrp: changing ownership of
'hdfs://localhost/':org.apache.hadoop.security.AccessControlException: Permission denied
0
ravi@localhost:~$ hadoop dfs -chown abcd /; echo $?
chown: changing ownership of
'hdfs://localhost/':org.apache.hadoop.security.AccessControlException: Permission denied
0
ravi@localhost:~$ hadoop dfs -chmod 755 /DOESNTEXIST; echo $?
chmod: could not get status for '/DOESNTEXIST': File does not exist: /DOESNTEXIST
0
-
Exit codes for both of the above invocations should be non-zero to indicate that the command failed.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-6702 Incorrect exit codes for "dfs -chown", "dfs -chgrp" when input is given in wildcard format.
- Closed
- requires
-
HDFS-1736 Break dependency between DatanodeJspHelper and FsShell
- Resolved