From ab04c9ab5faf55043ecea37e84a71c83448a2c13 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 17 Jun 2015 17:13:02 -0700 Subject: [PATCH] HDFS-8615. Correct HTTP method in WebHDFS document. Contributed by Brahma Reddy Battula. (cherry picked from commit 1a169a26bcc4e4bab7697965906cb9ca7ef8329e) (cherry picked from commit 9f9315008e75765de4b905f7d57de9505fb5ca10) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/site/markdown/WebHDFS.md | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d52253d4123..bcb8a6e2d22 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1156,6 +1156,9 @@ Release 2.6.3 - UNRELEASED BUG FIXES + HDFS-8615. Correct HTTP method in WebHDFS document. + (Brahma Reddy Battula via aajisaka) + Release 2.6.2 - 2015-10-28 INCOMPATIBLE CHANGES 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 6432c57ae10..d2ce6d444f1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/WebHDFS.md @@ -692,7 +692,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).setAcl * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=GETACLSTATUS" + curl -i "http://:/webhdfs/v1/?op=GETACLSTATUS" The client receives a response with a [`AclStatus` JSON object](#ACL_Status_JSON_Schema): @@ -719,7 +719,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getAclSta * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=CHECKACCESS + curl -i "http://:/webhdfs/v1/?op=CHECKACCESS &fsaction= The client receives a response with zero content length: @@ -765,7 +765,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).removeXAt * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=GETXATTRS + curl -i "http://:/webhdfs/v1/?op=GETXATTRS &xattr.name=&encoding=" The client receives a response with a [`XAttrs` JSON object](#XAttrs_JSON_Schema): @@ -789,7 +789,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getXAttr * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=GETXATTRS + curl -i "http://:/webhdfs/v1/?op=GETXATTRS &xattr.name=&xattr.name= &encoding=" @@ -818,7 +818,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getXAttrs * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=GETXATTRS + curl -i "http://:/webhdfs/v1/?op=GETXATTRS &encoding=" The client receives a response with a [`XAttrs` JSON object](#XAttrs_JSON_Schema): @@ -850,7 +850,7 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getXAttrs * Submit a HTTP GET request. - curl -i -X PUT "http://:/webhdfs/v1/?op=LISTXATTRS" + curl -i "http://:/webhdfs/v1/?op=LISTXATTRS" The client receives a response with a [`XAttrNames` JSON object](#XAttrNames_JSON_Schema):