From 2581a1cd1bbbb0b639185e0f66840abd98b08a64 Mon Sep 17 00:00:00 2001 From: Jing Zhao Date: Fri, 11 Jul 2014 01:29:49 +0000 Subject: [PATCH] HDFS-6640. Merge change r1609603 from trunk. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1609605 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 a4f0a4a25a8..3c2c9248033 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -24,6 +24,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 aad95eb44be..51bc574095d 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=" +---------------------------------