[
https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860356#action_12860356
]
Ravi Phulari commented on HADOOP-6701:
--------------------------------------
This fix will change the way {{ch(mod/own/grp)}} returns exit codes.
Failure to execute chmod, chown, chgrp commands will return non zero exit code
with an error message.
> Incorrect exit codes for "dfs -chown", "dfs -chgrp"
> ----------------------------------------------------
>
> Key: HADOOP-6701
> URL: https://issues.apache.org/jira/browse/HADOOP-6701
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.19.1, 0.20.0, 0.20.1, 0.20.2
> Reporter: Ravi Phulari
> Assignee: Ravi Phulari
> Priority: Minor
> Fix For: 0.20.3, 0.21.0, 0.22.0
>
> Attachments: HADOOP-6701-20s.patch, HADOOP-6701-trunk.patch
>
>
> r...@localhost:~$ hadoop dfs -chgrp abcd /; echo $?
> chgrp: changing ownership of
> 'hdfs://localhost/':org.apache.hadoop.security.AccessControlException:
> Permission denied
> 0
> r...@localhost:~$ hadoop dfs -chown abcd /; echo $?
> chown: changing ownership of
> 'hdfs://localhost/':org.apache.hadoop.security.AccessControlException:
> Permission denied
> 0
> r...@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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.