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

MesosClusterScheduler generate bad command options

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2, 2.1.0
    • Component/s: Mesos
    • Labels:
    • Environment:

      CentOS 7, Jdk8, scala 2.11.8

      Description

      MesosClusterScheduler.java
      desc.schedulerProperties
            .filter { case (key, _) => !replicatedOptionsBlacklist.contains(key) }
            .foreach { case (key, value) => options ++= Seq("--conf", s"$key=${shellEscape(value)}") }
          options
      

      As above, --conf option value is not enclosed by "", for example, if we have a multi value config like

      spark.driver.extraJavaOptions= -Dlog4j.configuration=file:./conf/log4j-server.properties -Dalluxio.user.file.writetype.default=THROUGH

      Without "" the next alluxio config will be treated as spark-submit options and cause error.

        Attachments

          Activity

            People

            • Assignee:
              wlsailor Leighton Wong
              Reporter:
              wlsailor Leighton Wong
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified