Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-748

Coordinator URL always 127.0.0.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0, 0.9.1
    • Fix Version/s: 0.10.0
    • Component/s: container
    • Labels:
      None

      Description

      As discussed in the mailing list, we are using InetAddress.getLocalHost().getHostAddress() for the org.apache.samza.coordinator.server.HttpServer#getUrl. But getLocalHost() may return a loopback address, 127.0.0.1, which is not reachable by other machines.

      This idea is to filter out the loopback address. One possible solution is here, use NetworkInterface.getNetworkInterfaces() .

        Attachments

        1. SAMZA-748.2.patch
          11 kB
          József Márton Jung
        2. SAMZA-748.1.patch
          11 kB
          József Márton Jung
        3. SAMZA-748.0.patch
          10 kB
          József Márton Jung

          Activity

            People

            • Assignee:
              jjung József Márton Jung
              Reporter:
              closeuris Yan Fang
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: