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

Coordinator URL always 127.0.0.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0, 0.9.1
    • 0.10.0
    • container
    • 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.0.patch
          10 kB
          József Márton Jung
        2. SAMZA-748.1.patch
          11 kB
          József Márton Jung
        3. SAMZA-748.2.patch
          11 kB
          József Márton Jung

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: