Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-22 Thread Xiang Gao
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

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-21 Thread Jakob Odersky
Hi Xiang, this error also appears in client mode (maybe the situation that you were referring to and that worked was local mode?), however the error is expected and is not a bug. this line in your snippet: object Main extends A[String] { //... is, after desugaring, equivalent to: object M

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread Xiang Gao
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

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread WangJianfei
if I remove this abstract class A[T : Encoder] {} it's ok! -- View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/java-lang-NoClassDefFoundError-is-this-a-bug-tp18972p18980.html Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread Xiang Gao
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. ---

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread WangJianfei
do you run this on yarn mode or else? -- View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/java-lang-NoClassDefFoundError-is-this-a-bug-tp18972p18978.html Sent from the Apache Spark Developers List mailing list archive at Nabble.com. --

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread Xiang Gao
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)

Re: java.lang.NoClassDefFoundError, is this a bug?

2016-09-17 Thread Jacek Laskowski
Hi, I'm surprised too. Here's the entire stack trace for reference. I'd also like to know what causes the issue. Caused by: java.lang.NoClassDefFoundError: Could not initialize class Main$ at Main$$anonfun$main$1.apply(test.scala:14) at Main$$anonfun$main$1.apply(test.scala:14) at org.apache.spa