Support Questions

Find answers, ask questions, and share your expertise

Why i am getting Caused by: java.lang.ClassNotFoundException: $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1 ?

I am using spark shell in yarn client mode i wanted to stop my current sc and deploy new one . i created a new rdd and the ran a reduce job. then i got this error

Caused by: java.lang.ClassNotFoundException: $iwC$iwC$iwC$iwC$iwC$iwC$iwC$iwC$anonfun$1 at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at org.apache.spark.serializer.JavaDeserializationStream$anon$1.resolveClass(JavaSerializer.scala:68) at at at at at at at at at at at at at at at at at at org.apache.spark.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:76) at org.apache.spark.serializer.JavaSerializerInstance.deserialize(JavaSerializer.scala:115) at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61) at at org.apache.spark.executor.Executor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at


Expert Contributor

Could you give some example code to reproduce your problem?