Hadoop Common
  1. Hadoop Common
  2. HADOOP-6701

Incorrect exit codes for "dfs -chown", "dfs -chgrp"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.19.1, 0.20.0, 0.20.1, 0.20.2
    • Fix Version/s: 0.20.3, 0.21.0
    • 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.

      1. HADOOP-6701-trunk.patch
        11 kB
        Suresh Srinivas
      2. HADOOP-6701-trunk.patch
        11 kB
        Ravi Phulari
      3. HADOOP-6701-v20.patch
        11 kB
        Ravi Phulari

        Issue Links

          Activity

          Daryn Sharp made changes -
          Link This issue requires HDFS-1736 [ HDFS-1736 ]
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Tom White made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Suresh Srinivas made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          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.
          Resolution Fixed [ 1 ]
          Suresh Srinivas made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Suresh Srinivas made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Suresh Srinivas made changes -
          Attachment HADOOP-6701-trunk.patch [ 12443038 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-trunk.patch [ 12442988 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-v20.patch [ 12442987 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.v20s.patch [ 12442719 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.v20s.patch [ 12442719 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.patch [ 12442707 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.patch [ 12442707 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-trunk.patch [ 12442011 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-20s.patch [ 12442010 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-trunk.patch [ 12442011 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-20s.patch [ 12442010 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.patch [ 12441651 ]
          Ravi Phulari made changes -
          Link This issue is related to HADOOP-6702 [ HADOOP-6702 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.patch [ 12441651 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-trunk.patch [ 12441532 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701.patch [ 12441530 ]
          Ravi Phulari made changes -
          Attachment HADOOP-6701-trunk.patch [ 12441532 ]
          Ravi Phulari made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Ravi Phulari made changes -
          Field Original Value New Value
          Attachment HADOOP-6701.patch [ 12441530 ]
          Ravi Phulari created issue -

            People

            • Assignee:
              Ravi Phulari
              Reporter:
              Ravi Phulari
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development