Pyspark – can’t launch Pyspark shell in windows

  apache-spark, cmd, pyspark, python, windows

I am trying to launch Pyspark on windows:

set PYSPARK_SUBMIT_ARGS="--name" "PySparkShell" "pyspark-shell" && python3

but I am getting this error:

C:appsspark-3.2.0-bin-hadoop2.7/bin/spark-class: line 96: CMD: bad
array subscript

I tried to add this to my .bashrc file but it is not working.

Can anyone tell me how to fix this issue?

Source: Windows Questions

LEAVE A COMMENT