Inferschema Option in LKM HDFS to Spark.GLOBAL does not Infer Schema even when Configured to use Dataframes

(Doc ID 2379854.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Data Integrator - Version and later
Information in this document applies to any platform.


In Oracle Data Integrator (ODI), when attempting to use Inferschema with LKM HDFS to Spark.GLOBAL, the schema is not Inferred - even when configured to use Dataframes.

The following error occurs in this situation:

ODI-1590: The execution of the script failed.
ODIKM-SPARK-SYNC-10000: EKM Command Failed with Exception: java.lang.Exception: Traceback (most recent call last):
10 File "/tmp/", line 58, in
12 File "/opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/lib/spark2/python/lib/", line 1685, in toDF
13 File "/opt/cloudera/parcels/SPARK2/lib/spark2/python/lib/", line 1133, in __call__
14 File "/opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/lib/spark2/python/lib/", line 79, in deco
15 pyspark.sql.utils.IllegalArgumentException: u"requirement failed: The number of columns doesn't match.\nOld column names (2): Continent, Country\nNew column names (0): "




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