Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3078

bin/hadoop fs -chmod doesnot change execution permissions for files.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.16.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amareshwari Amareshwari Sriramadasu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: