Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Problem in uploading file in WebHDFS

Copy link to this message
Re: Problem in uploading file in WebHDFS
Can u try one of the following

hdfs dfs -put localfile /path/to/dir/in/hdfs

hdfs dfs -copyFromLocal localfile /path/to/dir/in/hdfs


Sent from my iPhone

On May 25, 2013, at 5:07 AM, "Mohammad Mustaqeem" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:

I am using pseudo-distributed Hadoop-2.0.3-alpha.
I want to upload a file named 'abc' from my local filesystem on HDFS at location "/waseem".
When I run this command on terminal -
curl --negotiate -u : -i -X PUT -T /home/mustaqeem/abc -L ''
First it hangs for some time and give following error -

HTTP/1.1 100 Continue

Cache-Control: no-cache
Expires: Thu, 01-Jan-1970 00:00:00 GMT
Date: Sat, 25 May 2013 12:01:14 GMT
Pragma: no-cache
Date: Sat, 25 May 2013 12:01:14 GMT
Pragma: no-cache
Content-Type: application/octet-stream
Set-Cookie: hadoop.auth="u=mustaqeem&p=mustaqeem&t=simple&e=1369519274604&s=HyX9z80lRU+9RdKeN5USW5Q/AZY=";Path=/
Location: http://mustaqeem:50075/webhdfs/v1/waseem?op=CREATE&user.name=mustaqeem&namenoderpcaddress=localhost:8020&overwrite=false
Content-Length: 0
Server: Jetty(6.1.26)

curl: (7) couldn't connect to host
Whats the problem?

With regards ---
Mohammad Mustaqeem,
M.Tech (CSE)
MNNIT Allahabad

=====================This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.