Xiaokai Zhao created SPARK-21877: ------------------------------------ Summary: Windows command script can not handle quotes in parameter Key: SPARK-21877 URL: https://issues.apache.org/jira/browse/SPARK-21877 Project: Spark Issue Type: Bug Components: Deploy, Windows Affects Versions: 2.2.0 Environment: Spark version: spark-2.2.0-bin-hadoop2.7 Windows version: Windows 10 Reporter: Xiaokai Zhao
All the windows command scripts can not handle quotes in parameter. Run a windows command shell with parameter which has quotes can reproduce the bug: {quote} C:\Users\meng\software\spark-2.2.0-bin-hadoop2.7> bin\spark-shell --driver-java-options " -Dfile.encoding=utf-8 " 'C:\Users\meng\software\spark-2.2.0-bin-hadoop2.7\bin\spark-shell2.cmd" --driver-java-options "' is not recognized as an internal or external command, operable program or batch file. {quote} Windows recognize "--driver-java-options" as part of the command. All the Windows command script has the following code have the bug. {quote} cmd /V /E /C "<other command>" %* {quote} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org