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

Bind AM Jetty server to 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: yarn
    • Labels:

      Description

      We currently bind YARN's AM Jetty server (both RPC and dashboard) by randomly selecting ports, then retrying if there's a port collision. It looks like Jetty supports fetching of a port after it's been bound (which we need to know, so we can report it to YARN), so we should just bind to 0 instead, and then get the port after the OS selects an open port for Jetty to use.

      Documentation here:

      http://www.eclipse.org/jetty/documentation/current/configuring-connectors.html

      Shows "port: The configured port for the connector or 0 a random available port may be used (selected port available via getLocalPort())."

        Attachments

        1. SAMZA-175.1.patch
          4 kB
          Zhijie Shen
        2. SAMZA-175.2.patch
          5 kB
          Zhijie Shen

          Issue Links

            Activity

              People

              • Assignee:
                zjshen Zhijie Shen
                Reporter:
                criccomini Chris Riccomini
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: