You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Mohit Anchlia <mo...@gmail.com> on 2014/06/24 21:12:51 UTC

Connection refused

When I try to run a hdfs api program I get connection refused. However,
hadoop fs -ls and other commands work fine. I don't see anything wrong in
the application web ui.


[mohit@localhost eg]$ hadoop jar hadoop-labs-0.0.1-SNAPSHOT.jar
org.hadoop.qstride.lab.eg.HelloWorld
hdfs://localhost/user/mohit/helloworld.dat

14/06/24 22:11:12 WARN util.NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable

Exception in thread "main" java.net.ConnectException: Call From
localhost.localdomain/127.0.0.1 to localhost:8020 failed on connection
exception: java.net.ConnectException: Connection refused; For more details
see: http://wiki.apache.org/hadoop/ConnectionRefused



[mohit@localhost eg]$ hadoop fs -ls /user/mohit/eg

 Found 1 items

-rw-r--r-- 1 mohit hadoop 13 2014-06-24 21:34 /user/mohit/eg/helloworld.dat

[mohit@localhost eg]$