class FPNeedle(args: Args) extends AvroJob(args) {
val jobConfigTest = implicitly[Mode] match {
case Hdfs(_, configuration) => configuration
case _ => throw new RuntimeException("Not running on Hadoop! (maybe cascading local mode?)")
}
...
val threshold = jobConfigTest.getInt("threshold")...
}
While running it I get:
java.io.NotSerializableException: org.apache.hadoop.mapred.JobConf
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1165)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1535)
...
com.esotericsoftware.kryo.KryoException: java.util.ConcurrentModificationException
Serialization trace:
classes (sun.misc.Launcher$AppClassLoader)
classLoader (org.apache.hadoop.mapred.JobConf)
JobConfigTest (com.akamai.csi.jobs.needles.scalding.fpneedle.job.FPNeedle)
$outer (com.akamai.csi.jobs.needles.scalding.fpneedle.job.FPNeedle$$anonfun$60)
fn$1 (com.twitter.scalding.typed.KeyedListLike$$anonfun$filter$1)
fn$3 (com.twitter.scalding.typed.IteratorMappedReduce$$anonfun$7)
...
Caused by: java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:74)
at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:18)
at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:501)
at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.write(FieldSerializer.java:564)
... 89 more
--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/5a925a43-4345-4d54-930a-eb66610d0d6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/9815f17f-aab2-4c09-899c-277b1f19088d%40googlegroups.com.