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

When spark-submit cluster mode is run from a Mesos task, the job fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Mesos
    • Labels:
    • Environment:

      Mesos

      Description

      In Mesos cluster mode, spark-submit passes all local MESOS_xxx env vars to the Dispatcher (via RestSubmissionClient). When these env vars are later set in the Driver task, they overwrite existing MESOS_xxx env vars, such as MESOS_FRAMEWORK_ID and MESOS_EXECUTOR_ID, that are needed to run correctly on MESOS. This makes it impossible to run spark-submit from Chronos, or any Mesos task, because the resulting driver will inherit the wrong MESOS_xxx and fail right away.
      A Mesos issue reporting the same behavior: https://github.com/mesos/chronos/issues/707

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              susanxhuynh Susan X. Huynh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: