My Oracle Support Banner

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 1.1.0.0.0 and later
Linux x86-64
***Checked for relevance on 07-Nov-2013***

Symptoms

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)

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.