Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20531

Spark master shouldn't send its address back to the workers over proxied connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.3, 2.0.2, 2.1.2, 2.2.0
    • None
    • Spark Core
    • None

    Description

      Currently, when a Spark worker connects to Spark master, the master sends its address back to the worker (as part of the RegisteredWorker message). The worker then saves this address and use it to talk to the master. The reason behind this handshake protocol is that if the master goes down, a new master can always send back RegisteredWorker messages to all the workers with its (new) IP address.

      However, if there is a proxy between the master and worker, this unfortunately ends up bypassing the proxy. A simple fix here is that we should encode the "destination address" in the RegisterWorker that can then be sent back to the to the worker as part of the RegisteredWorker message.

      cc zsxwing

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sameerag Sameer Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: