[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-07-06 Thread Hudson (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17152431#comment-17152431
 ] 

Hudson commented on HDFS-15312:
---

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #18415 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/18415/])
HDFS-15312. Apply umask when creating directory by WebHDFS (#2096) (github: rev 
f77bbc2123e3b39117f42e2c9471eb83da98380e)
* (edit) hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js


> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
> Fix For: 3.4.0
>
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-07-06 Thread Jira


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17152421#comment-17152421
 ] 

Íñigo Goiri commented on HDFS-15312:


Thanks [~NickyYe] for the patch and [~sodonnell] for the feedback.
Merged the PR.

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
> Fix For: 3.4.0
>
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-07-05 Thread Ye Ni (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17151519#comment-17151519
 ] 

Ye Ni commented on HDFS-15312:
--

[~inigoiri] Done.

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-07-01 Thread Stephen O'Donnell (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17149247#comment-17149247
 ] 

Stephen O'Donnell commented on HDFS-15312:
--

Yes I think this change is OK (in concept, I did not do a detailed review of 
the workings - just a quick look). I think the point of HDFS-10488 was that 
webhdfs should not use a value inside the NN as the umask. However as I 
understand it, explorer.js is just the web UI filesystem browser, and it makes 
calls to webhdfs - it is picking up the configured umask and then passing the 
correct "=" parameter to webhdfs. This leave full flexibility 
with other clients using webhdfs, and therefore will not be a problem.

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-06-29 Thread Jira


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17148018#comment-17148018
 ] 

Íñigo Goiri commented on HDFS-15312:


[~sodonnell], I think the code that [~NickyYe] provided in the PR goes into the 
direction you mentioned.
Now, the umask is happening in explorer.js which is the equivalent of doing it 
in curl.
Thoughts here?

[~NickyYe] can we do this for RBF too?

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-06-24 Thread Ye Ni (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17143601#comment-17143601
 ] 

Ye Ni commented on HDFS-15312:
--

[~inigoiri] PR provided.

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Assignee: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-05-01 Thread Jira


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17097809#comment-17097809
 ] 

Íñigo Goiri commented on HDFS-15312:


[~sodonnell], the proposal here is for explorer.js to read the parameter and 
apply it when uploading the file.
This is compatible with the discussion in HDFS-10488 which is to do it from the 
client side and not the server side.

[~NickyYe], do you mind uploading the patch to make the different with 
HDFS-10488 clear?

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15312) Apply umask when creating directory by WebHDFS

2020-04-30 Thread Stephen O'Donnell (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17096374#comment-17096374
 ] 

Stephen O'Donnell commented on HDFS-15312:
--

This was discussed a long time ago here:

https://issues.apache.org/jira/browse/HDFS-10488?focusedCommentId=15317387=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15317387

Then, the consensus was that webhdfs, running inside the NN is working as it 
should and it should not apply the umask.

If you are creating files over webhdfs, and you want them to have a certain 
permission, then you can specific the desired permission as a parameter, eg:

curl -i -X PUT "http://:/?op=MKDIRS[=]"

> Apply umask when creating directory by WebHDFS
> --
>
> Key: HDFS-15312
> URL: https://issues.apache.org/jira/browse/HDFS-15312
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: webhdfs
>Reporter: Ye Ni
>Priority: Minor
>
> WebHDFS methods for creating file/directories were always creating it with 
> 755 permissions as default for both files and directories.
> The configured *fs.permissions.umask-mode* is intentionally ignored.
> This Jira is to apply this setting in such scenario.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org