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 "XieXianshan (JIRA)" <ji...@apache.org> on 2011/08/31 15:22:09 UTC
[jira] [Created] (HADOOP-7597) dfs -chmod does not work as expected
dfs -chmod does not work as expected
------------------------------------
Key: HADOOP-7597
URL: https://issues.apache.org/jira/browse/HADOOP-7597
Project: Hadoop Common
Issue Type: Bug
Components: fs
Affects Versions: 0.24.0
Reporter: XieXianshan
Assignee: XieXianshan
Priority: Trivial
Fix For: 0.24.0
The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
For example:
# hdfs dfs -ls /user/
dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
# hdfs dfs -chmod =+w /user/hadoop
# hdfs dfs -ls /user/
d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7597) dfs -chmod does not work as
expected
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094525#comment-13094525 ]
Hadoop QA commented on HADOOP-7597:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12492457/HADOOP-7597.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.
-1 patch. The patch command could not apply the patch.
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/110//console
This message is automatically generated.
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7597) dfs -chmod does not work as expected
Posted by "XieXianshan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
XieXianshan updated HADOOP-7597:
--------------------------------
Attachment: HADOOP-7597.patch
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7597) dfs -chmod does not work as expected
Posted by "XieXianshan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
XieXianshan updated HADOOP-7597:
--------------------------------
Resolution: Not A Problem
Status: Resolved (was: Patch Available)
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7597) dfs -chmod does not work as
expected
Posted by "XieXianshan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095901#comment-13095901 ]
XieXianshan commented on HADOOP-7597:
-------------------------------------
Thanks for your comment.Daryn.
Yes,you're right.I misunderstood the meaning of that command.
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7597) dfs -chmod does not work as
expected
Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094580#comment-13094580 ]
Daryn Sharp commented on HADOOP-7597:
-------------------------------------
-1 This is not how the normal chmod works. =r,u+w will reset all perms to r then add w for user.
{code}
$ ls -l f
---------- 1 daryn users 143 Aug 31 09:40 f
$ chmod =r,u+w f
$ ls -l f
-rw-r--r-- 1 daryn users 143 Aug 31 09:40 f
{code}
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7597) dfs -chmod does not work as expected
Posted by "XieXianshan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
XieXianshan updated HADOOP-7597:
--------------------------------
Status: Patch Available (was: Open)
fixed it.
> dfs -chmod does not work as expected
> ------------------------------------
>
> Key: HADOOP-7597
> URL: https://issues.apache.org/jira/browse/HADOOP-7597
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.24.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Fix For: 0.24.0
>
> Attachments: HADOOP-7597.patch
>
>
> The operator "=" of chmod should have the top priority,i.e,the rest operators should be omitted if the first operator is "=".
> For example:
> # hdfs dfs -ls /user/
> dr--r--r-- - root supergroup 0 2011-08-31 19:42 /user/hadoop
> # hdfs dfs -chmod =+w /user/hadoop
> # hdfs dfs -ls /user/
> d-w--w--w- - root supergroup 0 2011-08-31 19:42 /user/hadoop
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira