From b90dfe0b499e9ff25b3beeb4c79d6f068e80baa9 Mon Sep 17 00:00:00 2001 From: Jing Zhao Date: Fri, 11 Jul 2014 01:28:47 +0000 Subject: [PATCH] HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1609603 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 92b1dc8c81..42c9fd4bc6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -281,6 +281,9 @@ Release 2.6.0 - UNRELEASED HDFS-6643. Refactor INodeWithAdditionalFields.PermissionStatusFormat and INodeFile.HeaderFormat. (szetszwo) + HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly + in WebHdfs document (missed webhdfs/v1). (Stephen Chu via jing9) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm index aad95eb44b..51bc574095 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm @@ -394,7 +394,7 @@ Hello, webhdfs user! * Submit a HTTP PUT request. +--------------------------------- -curl -i -X PUT "http://:/?op=MKDIRS[&permission=]" +curl -i -X PUT "http://:/webhdfs/v1/?op=MKDIRS[&permission=]" +--------------------------------- The client receives a response with a {{{Boolean JSON Schema}<<>> JSON object}}: @@ -419,7 +419,7 @@ Transfer-Encoding: chunked * Submit a HTTP PUT request. +--------------------------------- -curl -i -X PUT "http://:/?op=CREATESYMLINK +curl -i -X PUT "http://:/webhdfs/v1/?op=CREATESYMLINK &destination=[&createParent=]" +--------------------------------- @@ -934,7 +934,7 @@ Transfer-Encoding: chunked * Submit a HTTP PUT request. +--------------------------------- -curl -i -X PUT "http://:/webhdfs/v1/?op=op=SETXATTR +curl -i -X PUT "http://:/webhdfs/v1/?op=SETXATTR &xattr.name=&xattr.value= &flag=" +---------------------------------