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

Introduce a way for datanodes to register their HTTP info ports with the NameNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.5.0
    • None
    • None

    Description

      If we have multiple datanodes within a single machine the Jetty servers (other than the first one) won't be able to bind to the fixed HTTP port. So, one solution is to have the datanodes pick a free port (starting from a configured port value) and then inform namenode about it so that the namenode can then do redirects, etc.

      Johan Oskarson reported this problem.

      If a computer have a second dfs data dir in the config it doesn't start properly because of:

      Exception in thread "main" java.io.IOException: Problem starting http server
      at org.apache.hadoop.mapred.StatusHttpServer.start(StatusHttpServer.java:182)
      at org.apache.hadoop.dfs.DataNode.<init>(DataNode.java:170)
      at org.apache.hadoop.dfs.DataNode.makeInstanceForDir(DataNode.java:1045)
      at org.apache.hadoop.dfs.DataNode.run(DataNode.java:999)
      at org.apache.hadoop.dfs.DataNode.runAndWait(DataNode.java:1015)
      at org.apache.hadoop.dfs.DataNode.main(DataNode.java:1066)
      Caused by: org.mortbay.util.MultiException[java.net.BindException: Address already in use]
      at org.mortbay.http.HttpServer.doStart(HttpServer.java:731)
      at org.mortbay.util.Container.start(Container.java:72)
      at org.apache.hadoop.mapred.StatusHttpServer.start(StatusHttpServer.java:159)
      ... 5 more

      Attachments

        1. content_browsing.new.patch
          27 kB
          Devaraj Das
        2. content_browsing.new.patch
          27 kB
          Devaraj Das
        3. content_browsing.new.patch
          26 kB
          Devaraj Das
        4. c.patch
          25 kB
          Devaraj Das

        Issue Links

          Activity

            People

              ddas Devaraj Das
              ddas Devaraj Das
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: