Hadoop WebHDFS move file Could not resolve host: sandbox.hortonworks.com -


so, learn hadoop. use hortonworks sandbox. tried move file local pc (test.txt) hadoop using webhdfs.

to that, found out apache hadoop documentation says need 2 steps. first sumbit put http request, , datanode information.

this do:

curl -i -x put "http://127.0.0.1:50070/webhdfs/v1/user/root/learnhadoop/data/test.txt?user.name=root&op=create" 

this response

http/1.1 307 temporary_redirect cache-control: no-cache expires: wed, 01 apr 2015 17:26:10 gmt date: wed, 01 apr 2015 17:26:10 gmt pragma: no-cache expires: wed, 01 apr 2015 17:26:10 gmt date: wed, 01 apr 2015 17:26:10 gmt pragma: no-cache set-cookie: hadoop.auth=u=root&p=root&t=simple&e=1427945170842&s=ey5zvguyx8wryvnr2nbilug14s0=; path=/; expires=thu, 02-apr-2015 03:26:10 gmt; httponly location: http://sandbox.hortonworks.com:50075/webhdfs/v1/user/root/learnhadoop/data/test.txt?op=create&user.name=root&namenoderpcaddress=sandbox.hortonworks.com:8020&overwrite=false content-type: application/octet-stream content-length: 0 server: jetty(6.1.26) 

then submit put http request using datanode url.

curl -i -x put -t test.txt "http://sandbox.hortonworks.com:8020/webhdfs/v1/user/root/learnhadoop/data/test.txt?user.name=root&op=create" 

after that, nothings happen , error showing up. error message:

curl: (6) not resolve host: sandbox.hortonworks.com 

do miss something? should move file hadoop. in advance

as mentioned in comment, temporary fix replace sandbox.hortonworks.com 127.0.0.1 @ places. eventually, guess reason why namenode replys datanode location sandbox.hortonworks.com because vm set hostname sandbox.hortonworks.com, can change hostname localhost resolve problem completely.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -