[ 
https://issues.apache.org/jira/browse/HDFS-13870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siyao Meng updated HDFS-13870:
------------------------------
    Description: 
ALLOWSNAPSHOT, DISALLOWSNAPSHOT (since 2.8.0, HDFS-9057),

GETSNAPSHOTDIFF (since 3.0.3, HDFS-13052), GETSNAPSHOTTABLEDIRECTORYLIST 
(HDFS-13141) don't have their API usage documentation in the [official 
doc]([https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/WebHDFS.html)]
 yet.

 

Below are my examples of those undocumented APIs:
{code:bash}

# ALLOWSNAPSHOT uses http method PUT.
curl -X "PUT" 
"http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=ALLOWSNAPSHOT&user.name=hdfs"

# DISALLOWSNAPSHOT uses http method PUT.
curl -X "PUT" 
"http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=DISALLOWSNAPSHOT&user.name=hdfs"

# GETSNAPSHOTDIFF uses GET.
curl 
"http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTDIFF&user.name=hdfs&oldsnapshotname=snap1&snapshotname=snap2"

# GETSNAPSHOTTABLEDIRECTORYLIST uses GET.
curl 
"http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTTABLEDIRECTORYLIST&user.name=hdfs"

{code}

  was:
ALLOWSNAPSHOT, DISALLOWSNAPSHOT (since 2.8.0, HDFS-9057),

GETSNAPSHOTDIFF (since 3.0.3, HDFS-13052), GETSNAPSHOTTABLEDIRECTORYLIST 
(HDFS-13141) don't have their API usage documentation in the [official 
doc]([https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/WebHDFS.html)]
 yet.

 

Below are my examples of those undocumented APIs:
{code:bash}

# ALLOWSNAPSHOT uses http method PUT.
curl -X "PUT" 
"http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=ALLOWSNAPSHOT&user.name=hdfs"

# DISALLOWSNAPSHOT uses http method PUT.
curl -X "PUT" 
"<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=DISALLOWSNAPSHOT&user.name=hdfs"

# GETSNAPSHOTDIFF uses GET.
curl 
"<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTDIFF&user.name=hdfs&oldsnapshotname=snap1&snapshotname=snap2"

# GETSNAPSHOTTABLEDIRECTORYLIST uses GET.
curl 
"<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTTABLEDIRECTORYLIST&user.name=hdfs"

{code}


> WebHDFS: Document new APIs
> --------------------------
>
>                 Key: HDFS-13870
>                 URL: https://issues.apache.org/jira/browse/HDFS-13870
>             Project: Hadoop HDFS
>          Issue Type: Task
>          Components: documentation, webhdfs
>            Reporter: Siyao Meng
>            Priority: Minor
>
> ALLOWSNAPSHOT, DISALLOWSNAPSHOT (since 2.8.0, HDFS-9057),
> GETSNAPSHOTDIFF (since 3.0.3, HDFS-13052), GETSNAPSHOTTABLEDIRECTORYLIST 
> (HDFS-13141) don't have their API usage documentation in the [official 
> doc]([https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/WebHDFS.html)]
>  yet.
>  
> Below are my examples of those undocumented APIs:
> {code:bash}
> # ALLOWSNAPSHOT uses http method PUT.
> curl -X "PUT" 
> "http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=ALLOWSNAPSHOT&user.name=hdfs"
> # DISALLOWSNAPSHOT uses http method PUT.
> curl -X "PUT" 
> "http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=DISALLOWSNAPSHOT&user.name=hdfs"
> # GETSNAPSHOTDIFF uses GET.
> curl 
> "http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTDIFF&user.name=hdfs&oldsnapshotname=snap1&snapshotname=snap2"
> # GETSNAPSHOTTABLEDIRECTORYLIST uses GET.
> curl 
> "http://<SERVER>:<PORT>/webhdfs/v1/snaptest/?op=GETSNAPSHOTTABLEDIRECTORYLIST&user.name=hdfs"
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to