Hi, On Hadoop 1.1.1, I did a test on execution permission as below: 1. Set '*dfs.umaskmode*' to '*000*' in hdfs-site.xml 2. The permission of the test file on linux local file system is ' *-rwxr-xr-x* 1 admin admin 12297 5?? 30 01:44 test' 3. Put the test file to hdfs using command 'hadoop dfs -put test test'
Result: In hdfs, the permission of the uploaded file is '*-rw-rw-rw-* 1 admin supergroup 12297 2014-05-30 02:57 /user/admin/test' As the hdfs umask value is set to '000', I think the uploaded file's permission should be '-rwxr-xr-x' as well, but the result is different. Why? 2014-05-28 16:31 GMT+08:00 Sebastian Gäde <[email protected]>: > Hi, > > > > Not sure if this helps, in HDFS there is no execution permission since you > cannot execute files: > > https://issues.apache.org/jira/browse/HADOOP-3078 > > https://issues.apache.org/jira/browse/HDFS-4659 > > > > Cheers > > Seb. > > > > *From:* sam liu [mailto:[email protected]] > *Sent:* Wednesday, May 28, 2014 7:40 AM > *To:* [email protected] > *Subject:* Re: File Permission Issue using Distributed Cache of > Hadoop-2.2.0 > > > > Is this possible a Hadoop issue? Or any options is wrong in my cluster? > > > > 2014-05-27 13:58 GMT+08:00 sam liu <[email protected]>: > > Hi Experts, > > The original local file has execution permission, and then it was > distributed to multiple nodemanager nodes with Distributed Cache feature of > Hadoop-2.2.0, but the distributed file has lost the execution permission. > > However I did not encounter such issue in Hadoop-1.1.1. > > Why this happened? Some changes about 'dfs.umask' option or related staffs? > > Thanks! > > >
