You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by 小学园PHP <xx...@qq.com> on 2013/03/21 02:15:56 UTC

回复: Put a file to HDFS with WebHDFS ?

Really Thanks. It works!!




------------------ 原始邮件 ------------------
发件人: "ken barclay"<ke...@att.net>;
发送时间: 2013年3月20日(星期三) 下午2:19
收件人: "user"<us...@hadoop.apache.org>; 

主题: Re: Put a file to HDFS with WebHDFS ?



It didn't fail. If you hit the URL it returned, it will do the create.

--- On Wed, 3/20/13, 小学园PHP <xx...@qq.com> wrote:

From: 小学园PHP <xx...@qq.com>
Subject: Put a file to HDFS with WebHDFS ?
To: "user" <us...@hadoop.apache.org>
Date: Wednesday, March 20, 2013, 3:24 AM

When i use the WebHDFS, i wanna put a file to Hadoop.my curl command:
curl -i -X PUT -T /home/levi/3 "http://localhost:50070/webhdfs/v1/levi/3?op=CREATE"


But i got a return:
HTTP/1.1 100 Continue


HTTP/1.1 307 TEMPORARY_REDIRECT
Content-Type: application/octet-stream
Location:  http://58.53.211.46:50075/webhdfs/v1/levi/3?op=CREATE&overwrite=false
Content-Length: 0
Server: Jetty(6.1.26)



OK, it failed.
Do somebody know what has happened?