You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/08/31 00:53:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16148278#comment-16148278 ] 

Apache Spark commented on SPARK-21877:
--------------------------------------

User 'minixalpha' has created a pull request for this issue:
https://github.com/apache/spark/pull/19090

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