Oracle Loader For Hadoop Job Fails with Java.lang.NumberFormatException (Doc ID 1938756.1)

Last updated on OCTOBER 11, 2016

Applies to:

Oracle Loader for Hadoop - Version 2.3.1 and later
Linux x86-64

Symptoms

Using Oracle Loader for Hadoop(OLH) in online mode on Oracle Big Data Appliance. While performing load data from HDFS directly to tables in Exadata database using OLH fails for big tables (for which a big tablespace is allocated) with below error:

INFO loader.OraLoader: Oracle Loader for Hadoop Release 2.3.1 - Production

Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.

14/08/18 11:18:32 INFO loader.OraLoader: Built-Against: hadoop-2.0.0-cdh4.4.0 hive-0.10.0-cdh4.4.0 avro-1.7.3 jackson-1.8.8
14/08/18 11:18:32 INFO utils.OraLoaderConf: property "oracle.hadoop.loader.loaderMapFile" is deprecated; use "oracle.hadoop.loader.loaderMap.*" instead
java.lang.NumberFormatException: For input string: "2151008785"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:495)
        at java.lang.Integer.parseInt(Integer.java:527)
        at oracle.hadoop.loader.metadata.Storage.endElement(Storage.java:123)
        at oracle.hadoop.loader.metadata.HandlerDelegator.endElement(HandlerDelegator.java:86)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
        ..........................

The error in OLH seems to happen because it cannot manage this number: 2151008785 for being too long and this number is included in the target table metadata.
 

Cause

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