title: Hadoop Connection Refused Error
body: <p>I was trying to install RMR (RHadoop) package and I somehow managed to mess up my hadoop setup. Now, it gives the connection refused error which I just can't find a solution for. Any help would be appreciated. Thanks</p>
  
  <pre><code> java.net.ConnectException: Call to master/***.***.***.***:54310 failed on connection exception: java.net.ConnectException: Connection refused
  at org.apache.hadoop.ipc.Client.wrapException(Client.java:1095)
  at org.apache.hadoop.ipc.Client.call(Client.java:1071)
  at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
  at $Proxy2.getProtocolVersion(Unknown Source)
  at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
  at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
  at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
  at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:238)
  at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:203)
  at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
  at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
  at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
  at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123)
  at org.apache.hadoop.mapred.Child$4.run(Child.java:254)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:396)
  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
  at org.apache.hadoop.mapred.Child.main(Child.java:249)
  Caused by: java.net.ConnectException: Connection refused
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
  at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
  at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)
  at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:434)
  at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:560)
  at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:184)
  at org.apache.hadoop.ipc.Client.getConnection(Client.java:1202)
  at org.apache.hadoop.ipc.Client.call(Client.java:1046)
  ... 18 more
  </code></pre>