Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-282

the datanode crashes if it starts before the namenode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.3.1
    • Fix Version/s: 0.3.2
    • Component/s: None
    • Labels:
      None

      Description

      If the datanode tries to register before the namenode is offering service, it crashes with a uncaught exception.

      java.net.ConnectE
      xception: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.<init>(Socket.java:365)
      at java.net.Socket.<init>(Socket.java:207)
      at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:112)
      at org.apache.hadoop.ipc.Client.getConnection(Client.java:351)
      at org.apache.hadoop.ipc.Client.call(Client.java:289)
      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:150)
      at org.apache.hadoop.dfs.$Proxy0.register(Unknown Source)
      at org.apache.hadoop.dfs.DataNode.register(DataNode.java:176)
      at org.apache.hadoop.dfs.DataNode.<init>(DataNode.java:109)
      at org.apache.hadoop.dfs.DataNode.makeInstanceForDir(DataNode.java:892)
      at org.apache.hadoop.dfs.DataNode.run(DataNode.java:846)
      at org.apache.hadoop.dfs.DataNode.runAndWait(DataNode.java:862)
      at org.apache.hadoop.dfs.DataNode.main(DataNode.java:917)

        Attachments

        1. data-node-first-2.patch
          0.9 kB
          Owen O'Malley
        2. data-node-first.patch
          1 kB
          Owen O'Malley

          Activity

            People

            • Assignee:
              omalley Owen O'Malley
              Reporter:
              omalley Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: