hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Chansler (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HADOOP-3078) bin/hadoop fs -chmod doesnot change execution permissions for files.
Date Mon, 24 Mar 2008 17:27:24 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Chansler resolved HADOOP-3078.
-------------------------------------

    Resolution: Invalid

Files do not have an execute permission. (Directories _do_ have an execute permission.)

>From the user guide:

" In contrast to the POSIX model, there are no sticky, setuid 
or setgid bits for files as there is no notion of executable files."

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


Mime
View raw message