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

Hadoop QA commented on HDFS-11174:
----------------------------------

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
20s{color} | {color:blue} Docker mode activated. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  7m 
16s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
25s{color} | {color:green} trunk passed {color} |
| {color:green}+1{color} | {color:green} mvnsite {color} | {color:green}  0m 
23s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
15s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black}  8m 54s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker |  Image:yetus/hadoop:a9ad5d6 |
| JIRA Issue | HDFS-11174 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12840453/HDFS-11174.001.patch |
| Optional Tests |  asflicense  mvnsite  |
| uname | Linux e09c668de422 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 
20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | /testptch/hadoop/patchprocess/precommit/personality/provided.sh 
|
| git revision | trunk / 01665e4 |
| modules | C: hadoop-hdfs-project/hadoop-hdfs-httpfs U: 
hadoop-hdfs-project/hadoop-hdfs-httpfs |
| Console output | 
https://builds.apache.org/job/PreCommit-HDFS-Build/17660/console |
| Powered by | Apache Yetus 0.4.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> 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
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to