Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.19.1, 0.20.0, 0.20.1, 0.20.2
-
Component/s: fs
-
Labels:None
-
Hadoop Flags:Incompatible change, Reviewed
-
Release Note:Commands chmod, chown and chgrp now returns non zero exit code and an error message on failure instead of returning zero.
-
Tags:yahoo 20.10
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
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
-