Skip to content

Commit

Permalink
add comments for the outermost quotes in windows launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
minixalpha committed Oct 2, 2017
1 parent 26fc756 commit 4795b0d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/beeline.cmd
Expand Up @@ -17,4 +17,6 @@ rem See the License for the specific language governing permissions and
rem limitations under the License.
rem

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0spark-class.cmd" org.apache.hive.beeline.BeeLine %*"
2 changes: 2 additions & 0 deletions bin/pyspark.cmd
Expand Up @@ -20,4 +20,6 @@ rem
rem This is the entry point for running PySpark. To avoid polluting the
rem environment, it just launches a new cmd to do the real work.

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0pyspark2.cmd" %*"
3 changes: 3 additions & 0 deletions bin/run-example.cmd
Expand Up @@ -19,4 +19,7 @@ rem

set SPARK_HOME=%~dp0..
set _SPARK_CMD_USAGE=Usage: ./bin/run-example [options] example-class [example args]

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0spark-submit.cmd" run-example %*"
2 changes: 2 additions & 0 deletions bin/spark-class.cmd
Expand Up @@ -20,4 +20,6 @@ rem
rem This is the entry point for running a Spark class. To avoid polluting
rem the environment, it just launches a new cmd to do the real work.

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0spark-class2.cmd" %*"
2 changes: 2 additions & 0 deletions bin/spark-shell.cmd
Expand Up @@ -20,4 +20,6 @@ rem
rem This is the entry point for running Spark shell. To avoid polluting the
rem environment, it just launches a new cmd to do the real work.

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0spark-shell2.cmd" %*"
2 changes: 2 additions & 0 deletions bin/spark-submit.cmd
Expand Up @@ -20,4 +20,6 @@ rem
rem This is the entry point for running Spark submit. To avoid polluting the
rem environment, it just launches a new cmd to do the real work.

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0spark-submit2.cmd" %*"
2 changes: 2 additions & 0 deletions bin/sparkR.cmd
Expand Up @@ -20,4 +20,6 @@ rem
rem This is the entry point for running SparkR. To avoid polluting the
rem environment, it just launches a new cmd to do the real work.

rem The outermost quotes are used to prevent Windows command line parse error
rem when there are some quotes in parameters, see SPARK-21877.
cmd /V /E /C ""%~dp0sparkR2.cmd" %*"

0 comments on commit 4795b0d

Please sign in to comment.