I want connect to hdfs (in localhost) and i have a error:
Call From despubuntu-ThinkPad-E420/127.0.1.1 to localhost:54310 failed on connection exception: java.net.Connec
First check is if java processes are working or not by typing jps command on command line. On running jps command following processes are mandatory to run-->>
If following processes are not running then first start the name node by using following command-->> start-dfs.sh
This worked out for me and removed the error you stated.