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 update the Documentation properly, explaining umask is not applied when using WebHDFS related methods.
HDFS-6434 has also modified the default permissions for files, which is now 644. This will also be updated on the current documentation.