My eclipse is on Win7, Hadoop in the Win7 virtual machine in Ubuntu, for the sake of convenience, want to install Hadoop plug-ins on eclipse, the main reference https://my.oschina.net/muou/blog/ 408543, the above is written quite detailed, after the configuration, appears in the above written question one, according to what he said to create the directory, eclipse in the DFS Locations inside still show connection refused. Found the official document: Https://wiki.apache.org/hadoop/ConnectionRefused, but also only provides inspection steps, and does not give a workaround. Try the 5th mentioned above. I did not telnet to the 9000 port of Hadoop on my Win7. Later, the core-site.xml in the localhost:9000 to the actual IP address of the Ubuntu virtual machine, the problem is resolved.
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://192.168.56.101:9000</value> <!--don't write localhost--
</property>
</configuration>
Hadoop Eclipse Plugin