Repository: hadoop
Updated Branches:
  refs/heads/branch-2 408f60e6d -> 50e11dc80


HDFS-13870. WebHDFS: Document ALLOWSNAPSHOT and DISALLOWSNAPSHOT API doc. 
Contributed by Siyao Meng.

(cherry picked from commit 0e36e935d909862401890d0a5410204504f48b31)


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

Branch: refs/heads/branch-2
Commit: 50e11dc8075e577b9c788b61be19290077cd57c2
Parents: 408f60e
Author: Yiqun Lin <yq...@apache.org>
Authored: Fri Nov 30 11:31:34 2018 +0800
Committer: Yiqun Lin <yq...@apache.org>
Committed: Fri Nov 30 11:34:28 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/50e11dc8/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 3d7b32f..20dd8b3 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md
@@ -62,6 +62,8 @@ The HTTP REST API supports the complete 
[FileSystem](../../api/org/apache/hadoop
     * [`SETTIMES`](#Set_Access_or_Modification_Time) (see 
[FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).setTimes)
     * [`RENEWDELEGATIONTOKEN`](#Renew_Delegation_Token) (see 
[DelegationTokenAuthenticator](../../api/org/apache/hadoop/security/token/delegation/web/DelegationTokenAuthenticator.html).renewDelegationToken)
     * [`CANCELDELEGATIONTOKEN`](#Cancel_Delegation_Token) (see 
[DelegationTokenAuthenticator](../../api/org/apache/hadoop/security/token/delegation/web/DelegationTokenAuthenticator.html).cancelDelegationToken)
+    * [`ALLOWSNAPSHOT`](#Allow_Snapshot)
+    * [`DISALLOWSNAPSHOT`](#Disallow_Snapshot)
     * [`CREATESNAPSHOT`](#Create_Snapshot) (see 
[FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).createSnapshot)
     * [`RENAMESNAPSHOT`](#Rename_Snapshot) (see 
[FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).renameSnapshot)
     * [`SETXATTR`](#Set_XAttr) (see 
[FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).setXAttr)
@@ -1224,6 +1226,28 @@ See also: 
[FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).listXAttr
 Snapshot Operations
 -------------------
 
+### Allow Snapshot
+
+* Submit a HTTP PUT request.
+
+        curl -i -X PUT 
"http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=ALLOWSNAPSHOT"
+
+    The client receives a response with zero content length on success:
+
+        HTTP/1.1 200 OK
+        Content-Length: 0
+
+### Disallow Snapshot
+
+* Submit a HTTP PUT request.
+
+        curl -i -X PUT 
"http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=DISALLOWSNAPSHOT"
+
+    The client receives a response with zero content length on success:
+
+        HTTP/1.1 200 OK
+        Content-Length: 0
+
 ### Create Snapshot
 
 * Submit a HTTP PUT request.


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

Reply via email to