Yes, I mean local here. Thanks for pointing this out. Also thanks for
explaining the problem.
--
View this message in context:
http://apache-spark-developers-list.1001551.n3.nabble.com/java-lang-NoClassDefFoundError-is-this-a-bug-tp18972p19011.html
Sent from the Apache Spark Developers List mai
Yes. Besides, if you change the "T : Encoder" to "T", it OK too.
--
View this message in context:
http://apache-spark-developers-list.1001551.n3.nabble.com/java-lang-NoClassDefFoundError-is-this-a-bug-tp18972p18981.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.c
spark standalone cluster
--
View this message in context:
http://apache-spark-developers-list.1001551.n3.nabble.com/java-lang-NoClassDefFoundError-is-this-a-bug-tp18972p18979.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.
---
Besides, if you replace line #14 with:
Env.spark.createDataset(Seq("a","b","c")).rdd.map(func).collect()
You will have the same problem with a different stack trace:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class Main$
at Main$$anonfun$main$1.apply(test.scala:14)
Hi,
In my application, I got a weird error message:
java.lang.NoClassDefFoundError: Could not initialize class X
This happens only when I try to submit my application in cluster mode. It
works perfectly in client mode.
I'm able to reproduce this error message by a simple 16-line program:
htt