I am trying to run the word count example from the Spark website ( http://spark.apache.org/docs/latest/quick-start.html ) in Scala Spark but when I try to spark-submit I get an exception: java.lang.NoClassDefFoundError: scala/runtime/LambdaDeserialize The Spark version is 2.0.1 and the Scala version is 2.12.0
The full trace is here: http://pastebin.com/LEjRTAy4
The example code works fine on spark-shell
http://spark.apache.org/downloads.html
Note: Starting version 2.0, Spark is built with Scala 2.11 by default. Scala 2.10 users should download the Spark source package and build with Scala 2.10 support.
use scala 2.11.11
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.