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

Double quotes in Windows batch script

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2, 2.2.0, 2.3.0
    • Component/s: Windows
    • Labels:
      None

      Description

      This is a new issue in version 2.1.1. This problem was not present in 2.1.0.

      In bin/spark-class2.cmd, both the line that sets the RUNNER and the like that invokes the RUNNER have quotes. This opens and closes the quote immediately, producing something like

      RUNNER=""C:\Program Files (x86)\Java\jre1.8.0_131\bin\java""
             ab          c
      

      The quote above a opens the quote. The quote above b closes the quote. This creates a space at position c, which is invalid syntax.

        Attachments

          Activity

            People

            • Assignee:
              jarrettmeyer Jarrett Meyer
              Reporter:
              jarrettmeyer Jarrett Meyer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: