You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/03/24 18:45:26 UTC
[jira] Commented: (HADOOP-3078) bin/hadoop fs -chmod doesnot change
execution permissions for files.
[ https://issues.apache.org/jira/browse/HADOOP-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581619#action_12581619 ]
Raghu Angadi commented on HADOOP-3078:
--------------------------------------
At the least, it is confusing to the user. 'x' is something user sets (unlike 'd'), I wonder why it is disallowed for files in HDFS.
> bin/hadoop fs -chmod doesnot change execution permissions for files.
> --------------------------------------------------------------------
>
> Key: HADOOP-3078
> URL: https://issues.apache.org/jira/browse/HADOOP-3078
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.16.0
> Reporter: Amareshwari Sriramadasu
>
> bin/hadoop fs -chmod doesnt change execution permissions for files.
> I have two files in scripts directory
> $ hadoop fs -lsr scripts
> /user/amarsri/scripts/my.pl <r 3> 146 2008-03-24 14:39 rw-r--r-- amarsri supergroup
> /user/amarsri/scripts/xyz.pl <r 3> 146 2008-03-24 14:39 rw-r--r-- amarsri supergroup
> When i ran -chmod 777 on the file, file has only read permissions but no execution permissions.
> $ hadoop fs -chmod 777 /user/amarsri/scripts/my.pl
> $ hadoop fs -lsr scripts
> /user/amarsri/scripts/my.pl <r 3> 146 2008-03-24 14:39 rw-rw-rw- amarsri supergroup
> /user/amarsri/scripts/xyz.pl <r 3> 146 2008-03-24 14:39 rw-r--r-- amarsri supergroup
> When I do -chmod -R 777 on the directory, permissions are given to the directory, and the directories inside them, but files dont get execution permissions.
> $ hadoop fs -chmod -R 777 /user/amarsri/scripts/
> $ hadoop fs -lsr scripts
> /user/amarsri/scripts/my.pl <r 3> 146 2008-03-24 14:39 rw-rw-rw- amarsri supergroup
> /user/amarsri/scripts/xyz.pl <r 3> 146 2008-03-24 14:39 rw-rw-rw- amarsri supergroup
> "$hadoop fs -ls" lists scripts as the following.
> /user/amarsri/scripts <dir> 2008-03-24 14:39 rwxrwxrwx amarsri supergroup
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.