Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 64604 invoked from network); 13 Apr 2010 20:56:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 20:56:15 -0000 Received: (qmail 82351 invoked by uid 500); 13 Apr 2010 20:56:15 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 82319 invoked by uid 500); 13 Apr 2010 20:56:15 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 82311 invoked by uid 99); 13 Apr 2010 20:56:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 20:56:15 +0000 X-ASF-Spam-Status: No, hits=-1280.6 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 20:56:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3DKtsNC009013 for ; Tue, 13 Apr 2010 16:55:54 -0400 (EDT) Message-ID: <21947133.72601271192154792.JavaMail.jira@thor> Date: Tue, 13 Apr 2010 16:55:54 -0400 (EDT) From: "Ravi Phulari (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6701) Incorrect exit codes for "dfs -chown", "dfs -chgrp" In-Reply-To: <29784448.2801271097111992.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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