i want connect hdfs (in localhost) , have error:
call despubuntu-thinkpad-e420/127.0.1.1 localhost:54310 failed on connection exception: java.net.connectexception: connection refused; more details see: http://wiki.apache.org/hadoop/connectionrefused
i follow steps in other posts, dont solve problem. use hadoop 2.7 , configurations:
core-site.xml
<configuration> <property> <name>hadoop.tmp.dir</name> <value>/home/despubuntu/hadoop/name/data</value> </property> <property> <name>fs.default.name</name> <value>hdfs://localhost:54310</value> </property> </configuration>
hdfs-site.xml
<configuration> <property> <name>dfs.replication</name> <value>1</value> </property> </configuration>
i type /usr/local/hadoop/bin/hdfs namenode -format , /usr/local/hadoop/sbin/start-all.sh
but when type "jps" result is:
10650 jps 4162 main 5255 nailgunrunner 20831 launcher
i need help...
make sure dfs set port 9000 in core-site.xml
started. can check jps
command. can start sbin/start-dfs.sh