hooch
hooch

Reputation: 23

Apache Spark installation with Java Error

Hi I am having a problem to install spark on my PC having the Java error below. Would you help me and give me tips how to fix it?

Thanks millions in advance

enter image description here

Upvotes: 1

Views: 1274

Answers (1)

jgp
jgp

Reputation: 2091

(See my comments above, but here is my answer)

As Spark relies on Scala (but you don’t have to use Scala yourself) you are dependent on the version of the JVM used by Scala, which in your situation is Java 8 or 11, not 17.

Check out https://spark.apache.org/docs/latest/ for more details.

Install Java 8 or 11, point your JAVA_HOME to the right directory, and run Spark again.

Upvotes: 1

Related Questions