I am trying to run a SPARK application from Eclipse on Windows. I have to use a Hadoop cluster. I have my hadoop hdfs running on Ubuntu virtual machine.
Whenever I try to pass the hdfs path to windows eclipse (in my case it is hdfs://localhost:9000), it gives a java.net.ConnectException, with a message saying that connection to localhost:9000 failed.
I have SSH installed on ubuntu. I tried passing the ip of the ubuntu machine instead of 'localhost', but it also didn't work. I played around with core-site.xml changing the name of the default fs (i tried the name of the machine as well as the ip address), with no luck.
How can I get my windows machine to be able to access the hdfs cluster in my ubuntu virtual machine?