Posts

Showing posts with the label lang

Spotlight and Giveaway Half by Eli Lang

Image
Spotlight and Giveaway Half by Eli Lang We are happy to host Eli Lang�s tour today celebrating the release of Half . Go check it out and don�t forget to enter the giveaway! Read more � download  file  now

SOLVED java lang Exception java lang ClassCastException class com sun jersey core impl provider entity XMLJAXBElementProvider Text

Image
SOLVED java lang Exception java lang ClassCastException class com sun jersey core impl provider entity XMLJAXBElementProvider Text It is quite natural seeing ClassCastException in Hadoop MR Jobs like these for Hadoop beginers. java.lang.Exception: java.lang.ClassCastException: class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:404) Caused by: java.lang.ClassCastException: class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text at java.lang.Class.asSubclass(Class.java:3037) at org.apache.hadoop.mapred.JobConf.getOutputKeyComparator(JobConf.java:819) at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.init(MapTask.java:836) at org.apache.hadoop.mapred.MapTask.createSortingCollector(MapTask.java:376) at org.apache.hadoop.mapred.MapTask.access$100(MapTask.java:85) at org.apache.hadoop.mapred.MapTask$NewOutputCollector.<init>(MapTask.java:584) at org.apache.hadoop....

Storm java lang NoClassDefFoundError org apache curator RetryPolicy

Storm java lang NoClassDefFoundError org apache curator RetryPolicy Recently I was working on a Trident topology with Trident-ML which uses nathan marzs storm-kafka which pushes the results from the Trident topology to be read by another storm topology. While the program works perfectly in local cluster testing. When it was deployed in a storm cluster, the following error showed up from nowhere: java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy The error got me stuck for more than half an hour, before i figured out a workable solution. It seems that i am using there is a version compatibility issues with the version of storm, trident-ml, and the storm-kafka. Originally i had been using the following dependencies in the pom file: <dependency> <groupId>org.apache.storm</groupId> <artifactId>storm-core</artifactId> <version>0.9.2-incubating</version> <scope>provided</scope> </dependency> <dependency> <groupI...