You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ravi Phulari (JIRA)" <ji...@apache.org> on 2010/04/12 20:31:51 UTC

[jira] Created: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

 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.20.2, 0.20.1, 0.20.0, 0.19.1
            Reporter: Ravi Phulari
            Assignee: Ravi Phulari
            Priority: Minor
             Fix For: 0.20.3, 0.21.0, 0.22.0


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701.patch)

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701.v20s.patch)

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701.v20s.patch

>  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.v20s.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701.patch)

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860395#action_12860395 ] 

Suresh Srinivas commented on HADOOP-6701:
-----------------------------------------

+1 for the patch.

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701.patch

Attaching patch to fix exit codes for {{fs -ch(own/mod/grp)}}.  Patch includes unit tests for theses issues.

This patch does not fix bug for incorrect exit code when wild card input is given to the {{fs -ch(own/mod/grp)}}. 
There is bug in {{FsShell.java}} which causes incorrect exit codes when wildcard inputs are given to -ch*  commands.

{code:title=Bar.java|borderStyle=solid}
 for (int i=startIndex; i<args.length; i++) {
      Path srcPath = new Path(args[i]);
      FileSystem srcFs = srcPath.getFileSystem(getConf());
      Path[] paths = FileUtil.stat2Paths(srcFs.globStatus(srcPath), srcPath);
      for(Path path : paths) {
        try {
{code}

I will open new Jira to fix this issue.

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701-trunk.patch)

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HADOOP-6701:
------------------------------------

    Status: Patch Available  (was: Open)

>  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.20.2, 0.20.1, 0.20.0, 0.19.1
>            Reporter: Ravi Phulari
>            Assignee: Ravi Phulari
>            Priority: Minor
>             Fix For: 0.20.3, 0.21.0, 0.22.0
>
>         Attachments: HADOOP-6701-trunk.patch, HADOOP-6701-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861730#action_12861730 ] 

Hadoop QA commented on HADOOP-6701:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12443038/HADOOP-6701-trunk.patch
  against trunk revision 938788.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/486/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/486/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/486/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/486/console

This message is automatically generated.

>  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-trunk.patch, HADOOP-6701-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701-20s.patch)

>  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-trunk.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701-20s.patch

Attaching patch for hadoop 20.s .

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701-trunk.patch

Attaching patch for trunk.

>  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-trunk.patch, HADOOP-6701.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HADOOP-6701:
------------------------------------

          Status: Resolved  (was: Patch Available)
    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

I committed the patch. Thank you Ravi.

>  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-trunk.patch, HADOOP-6701-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701-v20.patch

>  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-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701.patch)

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Status: Patch Available  (was: Open)

>  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.20.2, 0.20.1, 0.20.0, 0.19.1
>            Reporter: Ravi Phulari
>            Assignee: Ravi Phulari
>            Priority: Minor
>             Fix For: 0.20.3, 0.21.0, 0.22.0
>
>         Attachments: HADOOP-6701.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701.patch

Attaching simple patch for fixing exit codes for -ch(mod/grp/own)  commands.

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
    [ 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
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment:     (was: HADOOP-6701-trunk.patch)

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701-trunk.patch

Patch for trunk . 

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701.patch

Patch for 0.20.

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860410#action_12860410 ] 

Ravi Phulari commented on HADOOP-6701:
--------------------------------------

*This patch changes exit codes returned from  chmod, chgrp and chown operations*

*  Old Behavior  of {{chmod,chown,chgrp}} operation.
  ** If operation is successful then - exit code 0 and no error message.
  ** If operation is unsuccessful then - exit code 0 and error message printed.
{noformat} 
*If files does not exist and with globbed input*
[rphulari@statepick-lm]> bin/hadoop fs -chmod 777 st*; echo $?
0

*If files does not exist without globbed input*
[rphulari@statepick-lm]> bin/hadoop fs -chmod 777 st; echo $?
chmod: could not get status for 'st': File does not exist: st
0

*If user does not have permission to change file-permission*
ravi@localhost:~$ hadoop dfs -chgrp abcd /; echo $?
chgrp: changing ownership of
'hdfs://localhost/':org.apache.hadoop.security.AccessControlException: Permission denied
0

*If user does not have permission to change file-permission*
ravi@localhost:~$ hadoop dfs -chown abcd /; echo $?
chown: changing ownership of
'hdfs://localhost/':org.apache.hadoop.security.AccessControlException: Permission denied
0

*If user has permission to change file-permission and file does not exist*
ravi@localhost:~$ hadoop dfs -chmod 755 /DOESNTEXIST; echo $?
chmod: could not get status for '/DOESNTEXIST': File does not exist: /DOESNTEXIST
0
{noformat} 

*  New Behavior  of {{chmod,chown,chgrp}} operation.
  ** If operation is successful then - exit code 0 is returned and no error message.
  ** If operation is unsuccessful then - exit code 1 is returned and error message printed.

{noformat} 
*If file does not exist*
[rphulari@lm]> bin/hadoop fs -chown rphulari:users est; echo $?
chown: could not get status for 'est': File does not exist: est
1

*If files does not exist and with globbed input*
[rphulari@statepick-lm]> bin/hadoop fs -chown rphulari:users est\*; echo $?
chown: could not get status for 'est*'
1

*If file exist and operation is successful*
[rphulari@statepick-lm]> bin/hadoop fs -chmod 700 test; echo $?
0


*If file/dir with glob pattern exits and operation is successful*
[rphulari@statepick-lm]> bin/hadoop fs -chmod 777 test*; echo $?
0
[rphulari@statepick-lm]> bin/hadoop fs -ls 
Found 2 items
-rw-rw-rw-   1 admin    supergroup          0 2010-04-15 13:54 /user/rphulari/t
drwxrwxrwx   - rphulari userss              0 2010-03-30 23:39 /user/rphulari/test

{noformat} 

*Unchanged behavior - need to be fixed in different Jira*
Because following bug is due to Permissions code we will change it in separate Jira .

{noformat} 
*If user does not have permission to change file-permission*
ravi@localhost:~$ hadoop dfs -chown abcd /; echo $?
chown: changing ownership of
'hdfs://localhost/':org.apache.hadoop.security.AccessControlException: Permission denied
0
{noformat} 


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HADOOP-6701:
------------------------------------

    Attachment: HADOOP-6701-trunk.patch

Refreshing the patch for hudson to pickup.

>  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-trunk.patch, HADOOP-6701-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Ravi Phulari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Phulari updated HADOOP-6701:
---------------------------------

    Attachment: HADOOP-6701-trunk.patch

>  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-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Konstantin Boudnik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856188#action_12856188 ] 

Konstantin Boudnik commented on HADOOP-6701:
--------------------------------------------

Looks like the patch is incomplete because it the case with {{chmod}}. The other two seem intact to me. 

>  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-trunk.patch, HADOOP-6701.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp"

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HADOOP-6701:
------------------------------------

    Status: Open  (was: Patch Available)

>  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.20.2, 0.20.1, 0.20.0, 0.19.1
>            Reporter: Ravi Phulari
>            Assignee: Ravi Phulari
>            Priority: Minor
>             Fix For: 0.20.3, 0.21.0, 0.22.0
>
>         Attachments: HADOOP-6701-trunk.patch, HADOOP-6701-trunk.patch, HADOOP-6701-v20.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.