[ 
https://issues.apache.org/jira/browse/HDFS-11394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15979845#comment-15979845
 ] 

Kai Sasaki commented on HDFS-11394:
-----------------------------------

The patch aims to include erasure coding policy in the response JSON when it 
WebHDFS receives {{LISTSTATUS}} and {{GET_FILESTATUS}} op.

{code}
$ curl http://localhost:9870/webhdfs/v1/ec\?op\=GETFILESTATUS | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   351    0   351    0     0  27629      0 --:--:-- --:--:-- --:--:-- 27000
{
  "FileStatus": {
    "accessTime": 0,
    "blockSize": 0,
    "childrenNum": 1,
    "ecBit": true,
    "erasureCodingPolicy": {
      "codecName": "rs",
      "cellSize": 65536,
      "numDataUnits": 3,
      "numParityUnits": 2
    },
    "fileId": 16392,
    "group": "supergroup",
    "length": 0,
    "modificationTime": 1492855409458,
    "owner": "root",
    "pathSuffix": "",
    "permission": "755",
    "replication": 0,
    "storagePolicy": 0,
    "type": "DIRECTORY"
  }
}
{code}

> Add method for getting erasure coding policy through WebHDFS 
> -------------------------------------------------------------
>
>                 Key: HDFS-11394
>                 URL: https://issues.apache.org/jira/browse/HDFS-11394
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: erasure-coding, namenode
>            Reporter: Kai Sasaki
>            Assignee: Kai Sasaki
>              Labels: hdfs-ec-3.0-nice-to-have
>         Attachments: HDFS-11394.01.patch
>
>
> We can expose erasure coding policy by erasure coded directory through 
> WebHDFS method as well as storage policy. This information can be used by 
> NameNode Web UI and show the detail of erasure coded directories.
> see: HDFS-8196



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to