org.apache.crunch.CrunchRuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
  • Re: Reading Hive Tables into PCollection
    via by Robinson, Landon - Landon,
    • org.apache.crunch.CrunchRuntimeException: Error while reading local file: file:/tmp/crunch-test/000000_0 at org.apache.crunch.io.orc.OrcFileReaderFactory$1.next(OrcFileReaderFactory.java:110) at org.apache.crunch.io.CompositePathIterable$2.next(CompositePathIterable.java:99) at com.google.common.collect.Iterators$5.next(Iterators.java:607) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:266) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:223) at org.apache.crunch.impl.mem.collect.MemCollection.<init>(MemCollection.java:79) at org.apache.crunch.impl.mem.MemPipeline.read(MemPipeline.java:165) at org.apache.crunch.impl.mem.MemPipeline.read(MemPipeline.java:156) at com.lowes.bigdata.closerate.verint.DataQualityDriverTest.run(DataQualityDriverTest.java:57) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at com.lowes.bigdata.closerate.verint.DataQualityDriverTest.main(DataQualityDriverTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.io.HiveCharWritable cannot be cast to org.apache.hadoop.io.Text at org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableStringObjectInspector.getPrimitiveJavaObject(WritableStringObjectInspector.java:46) at org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableStringObjectInspector.getPrimitiveJavaObject(WritableStringObjectInspector.java:26) at org.apache.crunch.types.orc.OrcUtils.convert(OrcUtils.java:169) at org.apache.crunch.types.orc.OrcUtils.convert(OrcUtils.java:222) at org.apache.crunch.types.orc.Orcs$ReflectInFn.map(Orcs.java:190) at org.apache.crunch.types.orc.Orcs$ReflectInFn.map(Orcs.java:168) at org.apache.crunch.fn.CompositeMapFn.map(CompositeMapFn.java:63) at org.apache.crunch.io.orc.OrcFileReaderFactory$1.next(OrcFileReaderFactory.java:108) ... 15 more
    No Bugmate found.