hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vino...@apache.org
Subject [2/2] hadoop git commit: HDFS-10488. Update WebHDFS documentation regarding CREATE and MKDIR default permissions. Contributed by Wellington Chevreuil.
Date Mon, 11 Jul 2016 22:32:04 GMT
HDFS-10488. Update WebHDFS documentation regarding CREATE and MKDIR default permissions. Contributed
by Wellington Chevreuil.

(cherry picked from commit 728623242f47c6bffb46cfcc8f3425b58c1fde3a)
(cherry picked from commit 5ebebc652454fd5541d1a8231ba7ac2656e36cba)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/490bcda7
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/490bcda7
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/490bcda7

Branch: refs/heads/branch-2.7.3
Commit: 490bcda71fc607dbc9d2785695e43f251571bb24
Parents: fcd058e
Author: Andrew Wang <wang@apache.org>
Authored: Thu Jul 7 10:36:18 2016 -0700
Committer: Vinod Kumar Vavilapalli <vinodkv@apache.org>
Committed: Mon Jul 11 15:28:37 2016 -0700

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/490bcda7/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
index efab9eb..62d3237 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
@@ -265,6 +265,8 @@ File and Directory Operations
         Location: webhdfs://<HOST>:<PORT>/<PATH>
         Content-Length: 0
 
+If no permissions are specified, the newly created file will be assigned with default 755
permission. This also applies for new directories. No umask mode will be applied from server
side (so "fs.permissions.umask-mode" value configuration set on Namenode side will have no
effect).
+
 **Note** that the reason of having two-step create/append is for preventing clients to send
out data before the redirect. This issue is addressed by the "`Expect: 100-continue`" header
in HTTP/1.1; see [RFC 2616, Section 8.2.3](http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3).
Unfortunately, there are software library bugs (e.g. Jetty 6 HTTP server and Java 6 HTTP client),
which do not correctly implement "`Expect: 100-continue`". The two-step create/append is a
temporary workaround for the software library bugs.
 
 See also: [`overwrite`](#Overwrite), [`blocksize`](#Block_Size), [`replication`](#Replication),
[`permission`](#Permission), [`buffersize`](#Buffer_Size), [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).create
@@ -344,6 +346,8 @@ See also: [`offset`](#Offset), [`length`](#Length), [`buffersize`](#Buffer_Size)
 
         {"boolean": true}
 
+If no permissions are specified, the newly created directory will be assigned with default
755 permission. This also applies to new files created. No umask mode will be applied from
server side (so "fs.permissions.umask-mode" value configuration set on Namenode side will
have no effect).
+
 See also: [`permission`](#Permission), [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).mkdirs
 
 ### Create a Symbolic Link


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message