I am running hdfs in one machine. I am trying to write into hdfs from my second machine. I got connection refused error and got this link in the error itself: http://wiki.apache.org/hadoop/ConnectionRefused
I checked for ping and traceroute and all. Everything works. But telnet to that server and port fails:
telnet localhost 8020 Trying ::1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host.
The connection is closed immediately (less than 2s).
Some of the SO answers suggested other users to use 127.0.0.1 instead localhost.
telnet 127.0.0.1 8020 Same as above output
So I checked if anything is listening at 8020,
netstat -plten | grep 8020 tcp 0 0 ::ffff:127.0.0.1:8020 :::* LISTEN 0 1331261 10940/java
So I checked whether the telnet program is working
telnet google.com 80 GET / HTTP/1.1 host: test.com [twice enter]
It works. Similar to this, i would like to provide input and get response. What is the problem here? Am i wrong? If so, please correct me