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

Local mode fails to start cluster due to configuration value escape issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1
    • None
    • Java API
    • None

    Description

      At least on Windows and perhaps also other systems, running Spark in local mode fails to start a cluster when a configuration key contains a value with "&" (ampersand) in it.

      This happens during the "getOrCreate()" call from a Spark session builder.

      The reason seems to be incorrect or insufficient escaping since on Windows, the attempt to start a Spark process actually ends up running multiple commands for each occurrence of the "&" character.

      On Windows specifically, the correct way to escape "&" would be "^&", but I have not been able yet to figure out exactly where the process is started and how the configuration is passed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              malthe Malthe Borch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: