Reputation: 13091
I have installed Scala 2.12.5 and trying to use Spark 2.2.0
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.2.0"
But read somewhere that Spark does not exist for that version of Scala.
How do I install scala 2.11.x and how to use it (e.g. switch to 2.11.x and then when needed - switch back to 2.12.x)?
Thanks.
Upvotes: 1
Views: 5124
Reputation: 8519
It seems you are using sbt based on the dependency line in your question. In this case it's easy, just change the scalaVersion
line to
scalaVersion := "2.11.11"
Or whichever version you need.
Upvotes: 1
Reputation: 62
take a look at this answer.
I'd personally suggest you use the sbt file to specify the scala version like this: scalaVersion := "2.11.x"
then install with: brew install [email protected]
Upvotes: 3