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

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


Copy link to this message
-
Problem in uploading file in WebHDFS
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 '
http://127.0.0.1:50070/webhdfs/v1/waseem?op=CREATE&user.name=mustaqeem'
First it hangs for some time and give following error -

HTTP/1.1 100 Continue

HTTP/1.1 307 TEMPORARY_REDIRECT
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
+
Sanjay Subramanian 2013-05-25, 15:50
+
Mohammad Mustaqeem 2013-05-25, 16:37
+
Mohammad Tariq 2013-05-26, 17:14
+
Mohammad Mustaqeem 2013-05-26, 17:21