title: ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Call to localhost/127.0.0.1:54310 failed on local exception
body: <p>I am getting an error in starting the data node while initiating the single node cluster set up on my machine</p>
  
  <pre><code>   ************************************************************/
  2013-02-18 20:21:32,300 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
  /************************************************************
  STARTUP_MSG: Starting DataNode
  STARTUP_MSG:   host = somnath-laptop/127.0.1.1
  STARTUP_MSG:   args = []
  STARTUP_MSG:   version = 1.0.4
  STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0 -r 1393290; compiled by 'hortonfo' on Wed Oct  3 05:13:58 UTC 2012
  ************************************************************/
  2013-02-18 20:21:32,593 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
  2013-02-18 20:21:32,618 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
  2013-02-18 20:21:32,620 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
  2013-02-18 20:21:32,620 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: DataNode metrics system started
  2013-02-18 20:21:33,052 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source ugi registered.
  2013-02-18 20:21:33,056 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists!
  2013-02-18 20:21:37,890 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Call to localhost/127.0.0.1:54310 failed on local exception: java.io.IOException: Connection reset by peer
      at org.apache.hadoop.ipc.Client.wrapException(Client.java:1107)
      at org.apache.hadoop.ipc.Client.call(Client.java:1075)
      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
      at sun.proxy.$Proxy5.getProtocolVersion(Unknown Source)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:370)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:429)
      at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:331)
      at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:296)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:356)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.&lt;init&gt;(DataNode.java:299)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1582)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1521)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1539)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:1665)
      at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1682)
  Caused by: java.io.IOException: Connection reset by peer
      at sun.nio.ch.FileDispatcher.read0(Native Method)
      at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
      at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
      at sun.nio.ch.IOUtil.read(IOUtil.java:224)
  </code></pre>
  
  <p>Any idea about how to resolve this error?</p>