Home > Software design >  Spark-shell error on windows "Illegal character in path at index 32"
Spark-shell error on windows "Illegal character in path at index 32"

Time:02-16

I am trying to setup spark on my new windows laptop. I am getting below error while running spark-shell :

" ERROR Main: Failed to initialize Spark session. java.lang.reflect.InvocationTargetException Caused by: java.net.URISyntaxException: Illegal character in path at index 32: spark://DESKTOP-RCMDGS4:49985/C:\classes"

I am using below s/w : Spark 3.2.1 Java 11 Hadoop: winutils

I have set below environment variables : HADOOP_HOME, SPARK_HOME, JAVA_HOME, PATH

CodePudding user response:

This is known issue in latest spark version. Downgrade to 3.0.3 could fix the issue.

  • Related