You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by sz...@apache.org on 2013/08/01 05:47:39 UTC
svn commit: r1509075 - in
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs: CHANGES.txt
src/site/apt/WebHDFS.apt.vm
Author: szetszwo
Date: Thu Aug 1 03:47:39 2013
New Revision: 1509075
URL: http://svn.apache.org/r1509075
Log:
HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may contain additional properties.
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1509075&r1=1509074&r2=1509075&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Thu Aug 1 03:47:39 2013
@@ -281,6 +281,9 @@ Release 2.1.1-beta - UNRELEASED
IMPROVEMENTS
+ HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may
+ contain additional properties. (szetszwo)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm?rev=1509075&r1=1509074&r2=1509075&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm Thu Aug 1 03:47:39 2013
@@ -185,6 +185,10 @@ curl -i --negotiate -u : "http://<HOST>:
curl -i "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?delegation=<TOKEN>&op=..."
+---------------------------------
+ []
+
+ See also: {{{../hadoop-common/HttpAuthentication.html}Authentication for Hadoop HTTP web-consoles}}
+
* {Proxy Users}
When the proxy user feature is enabled, a proxy user <P> may submit a request on behalf of another user <U>.
@@ -971,6 +975,12 @@ Transfer-Encoding: chunked
See {{{http://tools.ietf.org/id/draft-zyp-json-schema-03.html}draft-zyp-json-schema-03}}
for the syntax definitions of the JSON schemas.
+ <<Note>> that the default value of
+ {{{http://tools.ietf.org/id/draft-zyp-json-schema-03.html#additionalProperties}<<<additionalProperties>>>}}
+ is an empty schema which allows any value for additional properties.
+ Therefore, all WebHDFS JSON responses allow any additional property.
+ However, if additional properties are included in the responses, they are
+ considered as optional properties in order to maintain compatibility.
** {Boolean JSON Schema}