Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7929C200BCB for ; Thu, 24 Nov 2016 20:16:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 77DE2160B1F; Thu, 24 Nov 2016 19:16:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0CE8160AFB for ; Thu, 24 Nov 2016 20:16:08 +0100 (CET) Received: (qmail 67308 invoked by uid 500); 24 Nov 2016 19:16:00 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67284 invoked by uid 99); 24 Nov 2016 19:15:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2016 19:15:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C66CA2C03DD for ; Thu, 24 Nov 2016 19:15:59 +0000 (UTC) Date: Thu, 24 Nov 2016 19:15:59 +0000 (UTC) From: "John Zhuge (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-11174) Wrong HttpFS test command in doc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 24 Nov 2016 19:16:09 -0000 [ https://issues.apache.org/jira/browse/HDFS-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Zhuge updated HDFS-11174: ------------------------------ Attachment: HDFS-11174.001.patch Patch 001: * Fix the HttpFS test command in {{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 > 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://:14000?user.name=babu&op=homedir" > HTTP/1.1 200 OK > Content-Type: application/json > Transfer-Encoding: chunked > {"homeDir":"http:\/\/: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