|
@@ -62,6 +62,7 @@ The HTTP REST API supports the complete [FileSystem](../../api/org/apache/hadoop
|
|
* [`GETFILELINKSTATUS`](#Get_File_Link_Status) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getFileLinkStatus)
|
|
* [`GETFILELINKSTATUS`](#Get_File_Link_Status) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getFileLinkStatus)
|
|
* [`GETSTATUS`](#Get_Status) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getStatus)
|
|
* [`GETSTATUS`](#Get_Status) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getStatus)
|
|
* [`GETECPOLICIES`](#Get_EC_Policies)
|
|
* [`GETECPOLICIES`](#Get_EC_Policies)
|
|
|
|
+ * [`GETECCODECS`](#Get_EC_Codecs)
|
|
* HTTP PUT
|
|
* HTTP PUT
|
|
* [`CREATE`](#Create_and_Write_to_a_File) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).create)
|
|
* [`CREATE`](#Create_and_Write_to_a_File) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).create)
|
|
* [`MKDIRS`](#Make_a_Directory) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).mkdirs)
|
|
* [`MKDIRS`](#Make_a_Directory) (see [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).mkdirs)
|
|
@@ -1252,6 +1253,26 @@ See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getFileLi
|
|
|
|
|
|
See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getStatus
|
|
See also: [FileSystem](../../api/org/apache/hadoop/fs/FileSystem.html).getStatus
|
|
|
|
|
|
|
|
+### Get EC Codecs
|
|
|
|
+
|
|
|
|
+* Submit a HTTP GET request.
|
|
|
|
+
|
|
|
|
+ curl -i "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETALLECCODECS"
|
|
|
|
+
|
|
|
|
+ The client receives a response with a [`ECCodecs` JSON object](#EC_Codecs_JSON_Schema):
|
|
|
|
+
|
|
|
|
+ HTTP/1.1 200 OK
|
|
|
|
+ Content-Type: application/json
|
|
|
|
+ Transfer-Encoding: chunked
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ "ErasureCodeCodecs": {
|
|
|
|
+ "rs": "rs_native, rs_java",
|
|
|
|
+ "rs-legacy": "rs-legacy_java",
|
|
|
|
+ "xor":"xor_native, xor_java"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
Storage Policy Operations
|
|
Storage Policy Operations
|
|
-------------------------
|
|
-------------------------
|
|
|
|
|
|
@@ -3244,6 +3265,18 @@ var blockLocationProperties =
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+### EC Codecs JSON Schema
|
|
|
|
+
|
|
|
|
+```json
|
|
|
|
+{
|
|
|
|
+ "ErasureCodingCodecs": {
|
|
|
|
+ "rs": "rs_native, rs_java",
|
|
|
|
+ "rs-legacy": "rs-legacy_java",
|
|
|
|
+ "xor": "xor_native, xor_java"
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+```
|
|
|
|
+
|
|
HTTP Query Parameter Dictionary
|
|
HTTP Query Parameter Dictionary
|
|
-------------------------------
|
|
-------------------------------
|
|
|
|
|