Missing or Invalid name for mapreduce.inputformat.class Parameter Causes java.lang.ClassCastException

(Doc ID 1455456.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Loader for Hadoop - Version and later
Linux x86-64
***Checked for relevance on 07-Nov-2013***


Running a job with Oracle Loader for Hadoop and receiving the following exception:

java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot be cast to org.apache.avro.generic.IndexedRecord
        at oracle.hadoop.loader.OraLoaderMapper.run(OraLoaderMapper.java:248)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
        at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:210)


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms