DBILITY

hadoop Caused by: java.lang.ClassCastException: class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text 본문

bigdata/hadoop

hadoop Caused by: java.lang.ClassCastException: class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text

DBILITY 2016. 10. 3. 02:33
반응형

org.apache.hadoop.io.Text가 import 되어야 하나, eclipse content assistant기능을 사용하다 보면 간혹 이런 일도 발생하더라.

02:28:22.728 [Thread-2] INFO org.apache.hadoop.mapred.LocalJobRunner - Map task executor complete.
02:28:22.731 [Thread-2] WARN org.apache.hadoop.mapred.LocalJobRunner - job_local836492892_0001
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:354)
Caused by: java.lang.ClassCastException: class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text
	at java.lang.Class.asSubclass(Class.java:3165)
	at org.apache.hadoop.mapred.JobConf.getOutputKeyComparator(JobConf.java:795)
	at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.<init>(MapTask.java:964)
	at org.apache.hadoop.mapred.MapTask$NewOutputCollector.<init>(MapTask.java:673)
	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:756)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364)
	at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
02:28:23.728 [main] INFO org.apache.hadoop.mapred.JobClient - Job complete: job_local836492892_0001

 

반응형
Comments