hadoop-common-dev mailing list archives

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

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

Amareshwari Sriramadasu updated HADOOP-3078:
--------------------------------------------

    Component/s: dfs
    Description: 
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


  was:

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



> 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