You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2017/10/06 14:45:01 UTC

[jira] [Updated] (SPARK-21877) Windows command script can not handle quotes in parameter

     [ https://issues.apache.org/jira/browse/SPARK-21877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-21877:
---------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org