You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Stuti Awasthi <st...@hcl.com> on 2012/01/19 13:17:30 UTC

(Hadoop-1.0.0)Correction required in Webhdfs url for creating a directory.

Hi,
I have tried the webhdfs functionality of Hadoop-1.0.0 and it is working fine.
Just a small change is required in the documentation :

Make a Directory declaration in documentation:
curl -i -X PUT "http://<HOST>:<PORT>/<PATH>?op=MKDIRS[&permission=<OCTAL>]"

Gives following error :
HTTP/1.1 405 HTTP method PUT is not supported by this URL
Content-Length: 0
Server: Jetty(6.1.26)

Correction Required : This works for me
curl -i -X PUT "http://<host>:<port>/webhdfs/v1/<PATH>?op=MKDIRS"

Thanks

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Re: (Hadoop-1.0.0)Correction required in Webhdfs url for creating a directory.

Posted by Harsh J <ha...@cloudera.com>.
Stuti,

Thanks for reporting this! I went ahead and filed
https://issues.apache.org/jira/browse/HDFS-2869 for correcting this.
In future, for all valid bugs or issues you want to report for HDFS,
please file a JIRA at the https://issues.apache.org/jira/browse/HDFS
issue tracker page.

On Thu, Jan 19, 2012 at 5:47 PM, Stuti Awasthi <st...@hcl.com> wrote:
> Hi,
> I have tried the webhdfs functionality of Hadoop-1.0.0 and it is working fine.
> Just a small change is required in the documentation :
>
> Make a Directory declaration in documentation:
> curl -i -X PUT "http://<HOST>:<PORT>/<PATH>?op=MKDIRS[&permission=<OCTAL>]"
>
> Gives following error :
> HTTP/1.1 405 HTTP method PUT is not supported by this URL
> Content-Length: 0
> Server: Jetty(6.1.26)
>
> Correction Required : This works for me
> curl -i -X PUT "http://<host>:<port>/webhdfs/v1/<PATH>?op=MKDIRS"
>
> Thanks
>
> ::DISCLAIMER::
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------



-- 
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about