[jira] [Commented] (HDFS-2462) webhdfs create a file that exists and overwrite it also changes the permission of the file
[ https://issues.apache.org/jira/browse/HDFS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129323#comment-13129323 ] Tsz Wo (Nicholas), SZE commented on HDFS-2462: -- Actually, setting the permission to the new one is the correct behavior. Could you try the same thing for DistributedFileSystem? You may want to set umask to 000 so that it won't affect the specified permission. > webhdfs create a file that exists and overwrite it also changes the > permission of the file > -- > > Key: HDFS-2462 > URL: https://issues.apache.org/jira/browse/HDFS-2462 > Project: Hadoop HDFS > Issue Type: Bug >Affects Versions: 0.20.205.0 >Reporter: Arpit Gupta >Assignee: Tsz Wo (Nicholas), SZE > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2462) webhdfs create a file that exists and overwrite it also changes the permission of the file
[ https://issues.apache.org/jira/browse/HDFS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129314#comment-13129314 ] Arpit Gupta commented on HDFS-2462: --- Changed the test to set the permission to 666 and it still failed Expected: rw-rw-rw- Actual: rw-r--r-- > webhdfs create a file that exists and overwrite it also changes the > permission of the file > -- > > Key: HDFS-2462 > URL: https://issues.apache.org/jira/browse/HDFS-2462 > Project: Hadoop HDFS > Issue Type: Bug >Affects Versions: 0.20.205.0 >Reporter: Arpit Gupta >Assignee: Tsz Wo (Nicholas), SZE > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2462) webhdfs create a file that exists and overwrite it also changes the permission of the file
[ https://issues.apache.org/jira/browse/HDFS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129307#comment-13129307 ] Tsz Wo (Nicholas), SZE commented on HDFS-2462: -- > expected: rwxr-xr-x HDFS file does not have 'x' permission. The the expected string is incorrect. > webhdfs create a file that exists and overwrite it also changes the > permission of the file > -- > > Key: HDFS-2462 > URL: https://issues.apache.org/jira/browse/HDFS-2462 > Project: Hadoop HDFS > Issue Type: Bug >Affects Versions: 0.20.205.0 >Reporter: Arpit Gupta >Assignee: Tsz Wo (Nicholas), SZE > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2462) webhdfs create a file that exists and overwrite it also changes the permission of the file
[ https://issues.apache.org/jira/browse/HDFS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129298#comment-13129298 ] Arpit Gupta commented on HDFS-2462: --- Here are the steps 1. Load a file to hdfs 2. change the permission to 755 3. Issue a create rest call and send overwrite=true for the above file 4. check the permission of the file after it got overwritten actual: rw-r--r-- expected: rwxr-xr-x If one is overwriting an existing file, it should not change the permission of that file unless explicitly asked for. > webhdfs create a file that exists and overwrite it also changes the > permission of the file > -- > > Key: HDFS-2462 > URL: https://issues.apache.org/jira/browse/HDFS-2462 > Project: Hadoop HDFS > Issue Type: Bug >Affects Versions: 0.20.205.0 >Reporter: Arpit Gupta > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira