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

MesosClusterScheduler generate bad command options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2, 2.1.0
    • Mesos
    • 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

            wlsailor Leighton Wong
            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