Uploaded image for project: 'Giraph'
  1. Giraph
  2. GIRAPH-1068

Make Zookeeper accept 0 as a port number and let it choose any available free port

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      We have a few use cases where having zookeeper bound to specific port is very inconvenient.
      1) Unit tests that run in parallel.
      2) Shared clusters where multiple giraph instances can run on the same machines.

      In theory we don't need to know what port zookeeper will run on. In most cases we're fine with any port available.
      Picking any available port is currently supported by the server socket, but is not supported in the code that parses zookeper configs (this code lives in zookeper).
      We don't have to parse configs though, as we have a way to run zookeper in process. And in that case we can have a full control on how zookeeper is initialized.

      For this task I want to allow 0 as a port number for zookeeper. Which will allow us to run zookeeper on any available port. And I will also remove "out of process" zookeeper, as it clearly provides no benefits to us.

      Note: it will still be possible to run external zookeper, if you have it running somewhere as a service.

        Attachments

          Activity

            People

            • Assignee:
              edunov Sergey Edunov
              Reporter:
              edunov Sergey Edunov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: