From 5f917439e591b42636af5b240dbb7eed0aa6d583 Mon Sep 17 00:00:00 2001
From: Tsz-wo Sze
OPEN
- (see DistributedFileSystem.open)
+ (see FileSystem.open)
GETFILESTATUS
- (see DistributedFileSystem.getFileStatus)
+ (see FileSystem.getFileStatus)
LISTSTATUS
- (see DistributedFileSystem.listStatus)
+ (see FileSystem.listStatus)
GETCONTENTSUMMARY
- (see DistributedFileSystem.getContentSummary)
+ (see FileSystem.getContentSummary)
GETFILECHECKSUM
- (see DistributedFileSystem.getFileChecksum)
+ (see FileSystem.getFileChecksum)
GETHOMEDIRECTORY
- (see DistributedFileSystem.getHomeDirectory)
+ (see FileSystem.getHomeDirectory)
GETDELEGATIONTOKEN
- (see DistributedFileSystem.getDelegationToken)
+ (see FileSystem.getDelegationToken)
CREATE
- (see DistributedFileSystem.create)
+ (see FileSystem.create)
MKDIRS
- (see DistributedFileSystem.mkdirs)
+ (see FileSystem.mkdirs)
RENAME
- (see DistributedFileSystem.rename)
+ (see FileSystem.rename)
SETREPLICATION
- (see DistributedFileSystem.setReplication)
+ (see FileSystem.setReplication)
SETOWNER
- (see DistributedFileSystem.setOwner)
+ (see FileSystem.setOwner)
SETPERMISSION
- (see DistributedFileSystem.setPermission)
+ (see FileSystem.setPermission)
SETTIMES
- (see DistributedFileSystem.setTimes)
+ (see FileSystem.setTimes)
RENEWDELEGATIONTOKEN
- (see DistributedFileSystem.renewDelegationToken)
+ (see DistributedFileSystem.renewDelegationToken)
CANCELDELEGATIONTOKEN
- (see DistributedFileSystem.cancelDelegationToken)
+ (see DistributedFileSystem.cancelDelegationToken)
APPEND
- (see DistributedFileSystem.append)
+ (see FileSystem.append)
DELETE
- (see DistributedFileSystem.delete)
+ (see FileSystem.delete)
When security is off, the authenticated user is the username specified in the user.name
query parameter.
If the user.name
parameter is not set,
- the server may either set the authenticated user to a default web user, if there is any, or return error response.
+ the server may either set the authenticated user to a default web user, if there is any, or return an error response.
When security is on, authentication is performed by either Hadoop delegation token or Kerberos SPNEGO. @@ -237,15 +234,15 @@ Content-Length: 0 -
- Note that the reason of having two-step create/append is
+
+ Note that the reason of having two-step create/append is
for preventing clients to send out data before the redirect.
This issue is addressed by the "Expect: 100-continue
" header in HTTP/1.1;
see RFC 2616, Section 8.2.3.
Unfortunately, there are software library bugs (e.g. Jetty 6 HTTP server and Java 6 HTTP client),
which do not correctly implement "Expect: 100-continue
".
The two-step create/append is a temporary workaround for the software library bugs.
-
See also:
overwrite
,
@@ -253,7 +250,7 @@ Content-Length: 0
replication
,
permission
,
buffersize
,
- DistributedFileSystem.create
+ FileSystem.create
See also:
buffersize
,
- DistributedFileSystem.append
+ FileSystem.append
offset
,
length
,
buffersize
,
- DistributedFileSystem.open
+ FileSystem.open
@@ -345,7 +342,7 @@ Transfer-Encoding: chunked
See also:
permission
,
- DistributedFileSystem.mkdirs
+ FileSystem.mkdirs
See also:
destination
,
- DistributedFileSystem.rename
+ FileSystem.rename
See also:
recursive
,
- DistributedFileSystem.delete
+ FileSystem.delete
See also: - DistributedFileSystem.getFileStatus + FileSystem.getFileStatus
@@ -486,7 +483,7 @@ Content-Length: 427See also: - DistributedFileSystem.listStatus + FileSystem.listStatus
@@ -523,7 +520,7 @@ Transfer-Encoding: chunkedSee also: - DistributedFileSystem.getContentSummary + FileSystem.getContentSummary
@@ -559,7 +556,7 @@ Transfer-Encoding: chunkedSee also: - DistributedFileSystem.getFileChecksum + FileSystem.getFileChecksum
@@ -582,7 +579,7 @@ Transfer-Encoding: chunkedSee also: - DistributedFileSystem.getHomeDirectory + FileSystem.getHomeDirectory
@@ -604,7 +601,7 @@ Content-Length: 0
See also:
permission
,
- DistributedFileSystem.setPermission
+ FileSystem.setPermission
owner
,
group
,
- DistributedFileSystem.setOwner
+ FileSystem.setOwner
@@ -652,7 +649,7 @@ Transfer-Encoding: chunked
See also:
replication
,
- DistributedFileSystem.setReplication
+ FileSystem.setReplication
modificationtime
,
accesstime
,
- DistributedFileSystem.setTimes
+ FileSystem.setTimes
@@ -708,7 +705,7 @@ Transfer-Encoding: chunked
See also:
renewer
,
- DistributedFileSystem.getDelegationToken
+ FileSystem.getDelegationToken
See also:
token
,
- DistributedFileSystem.renewDelegationToken
+ DistributedFileSystem.renewDelegationToken
See also:
token
,
- DistributedFileSystem.cancelDelegationToken
+ DistributedFileSystem.cancelDelegationToken
RumtimeException
500 Internal Server Error
- Below are examples of exception response. + Below are examples of exception responses.
-All operations, except for OPEN,
+All operations, except for OPEN
,
either return a zero-length response or a JSON response .
-For OPEN, the response is an octet-stream.
+For OPEN
, the response is an octet-stream.
The JSON schemas are shown below.
See draft-zyp-json-schema-03
for the syntax definitions of the JSON schemas.
@@ -1299,7 +1296,7 @@ var fileStatusProperties =
- Note that delegation tokens are encoded as a URL safe string;
+ Note that delegation tokens are encoded as a URL safe string;
see encodeToUrlString()
and decodeFromUrlString(String)
in org.apache.hadoop.security.token.Token
for the details of the encoding.