We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 855cba8 commit 04f4291Copy full SHA for 04f4291
bin/spark-class2.cmd
@@ -64,7 +64,10 @@ if not "x%JAVA_HOME%"=="x" set RUNNER=%JAVA_HOME%\bin\java
64
65
rem The launcher library prints the command to be executed in a single line suitable for being
66
rem executed by the batch interpreter. So read all the output of the launcher into a variable.
67
-for /f "tokens=*" %%i in ('cmd /C ""%RUNNER%" -cp %LAUNCHER_CP% org.apache.spark.launcher.Main %*"') do (
+set LAUNCHER_OUTPUT=%temp%\spark-class-launcher-output.txt
68
+"%RUNNER%" -cp %LAUNCHER_CP% org.apache.spark.launcher.Main %* > %LAUNCHER_OUTPUT%
69
+for /f "tokens=*" %%i in (%LAUNCHER_OUTPUT%) do (
70
set SPARK_CMD=%%i
71
)
72
+del %LAUNCHER_OUTPUT%
73
%SPARK_CMD%
0 commit comments