hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11174) Wrong HttpFS test command in doc
Date Fri, 25 Nov 2016 12:40:58 GMT

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

Hudson commented on HDFS-11174:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10892 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10892/])
HDFS-11174. Wrong HttpFS test command in doc. Contributed by John Zhuge. (aajisaka: rev bb1b5e083b6f32646412b292d061ce5721f5dbe1)
* (edit) hadoop-hdfs-project/hadoop-hdfs-httpfs/src/site/markdown/ServerSetup.md.vm


> Wrong HttpFS test command in doc
> --------------------------------
>
>                 Key: HDFS-11174
>                 URL: https://issues.apache.org/jira/browse/HDFS-11174
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: documentation, httpfs
>    Affects Versions: 2.6.0
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>             Fix For: 2.8.0, 2.7.4, 3.0.0-alpha2
>
>         Attachments: HDFS-11174.001.patch
>
>
> There are 2 errors in section {{Test HttpFS is working}} in http://hadoop.apache.org/docs/r2.7.3/hadoop-hdfs-httpfs/ServerSetup.html
> {noformat}
> ~ $ curl -i "http://<HTTPFSHOSTNAME>:14000?user.name=babu&op=homedir"
> HTTP/1.1 200 OK
> Content-Type: application/json
> Transfer-Encoding: chunked
> {"homeDir":"http:\/\/<HTTPFS_HOST>:14000\/user\/babu"}
> {noformat}
> # The URL path should be {{/webhdfs/v1}}.
> # The {{op}} should be {{gethomedirectory}}, not {{homedir}}.
> The curl command would produce this error:
> {noformat}
> $ curl 'http://localhost:14000/webhdfs/v1?op=homedir&user.name=hdfs' | json_pp
> {
>    "RemoteException" : {
>       "message" : "java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.fs.http.client.HttpFSFileSystem.Operation.HOMEDIR",
>       "exception" : "QueryParamException",
>       "javaClassName" : "com.sun.jersey.api.ParamException$QueryParamException"
>    }
> }
> {noformat}
> The correct command should be:
> {code}
> $ curl 'http://localhost:14000/webhdfs/v1?op=gethomedirectory&user.name=hdfs' | json_pp
> {
>    "Path" : "/user/hdfs"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message