Oracle Loader For Hadoop Job Failed with Error: oracle.hadoop.loader.OraLoaderException: error reading file: "/xxxx/loaderMap_olh.xml" (Doc ID 1559846.1)

Last updated on JUNE 09, 2013

Applies to:

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

Symptoms

Running an Oracle Loader for Hadoop job such as the following failed with the following error:

$ hadoop jar ${OLH_HOME}/jlib/oraloader.jar oracle.hadoop.loader.OraLoader -D mapred.reduce.tasks=3 -conf /xxxx/myconf.xml

Oracle Loader for Hadoop Release 2.0.0 - Production

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

13/06/06 07:09:20 INFO loader.OraLoader: Oracle Loader for Hadoop Release 2.0.0 - Production

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


13/06/06 07:09:20 INFO loader.OraLoader: Built-Against: hadoop-2.0.0-mr1-cdh4.0.0 hive-0.8.1-cdh4.0.0 avro-1.6.3 jackson-1.8.8
oracle.hadoop.loader.OraLoaderException: error reading file: "/xxxx/loaderMap_olh.xml"
        at oracle.hadoop.loader.metadata.OraLoaderMetadata.getReader(OraLoaderMetadata.java:752)
        at oracle.hadoop.loader.metadata.OraLoaderMetadata.<init>(OraLoaderMetadata.java:463)
        at oracle.hadoop.loader.OraLoader.run(OraLoader.java:372)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at oracle.hadoop.loader.OraLoader.mainWithExceptions(OraLoader.java:931)
        at oracle.hadoop.loader.OraLoader.main(OraLoader.java:941)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
Caused by: java.io.FileNotFoundException: File does not exist: /xxxx/loaderMap_olh.xml
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsUpdateTimes(FSNamesystem.java:1239)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsInt(FSNamesystem.java:1192)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1165)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1147)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:383)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations(ClientNamenodeProtocolServerSideTranslatorPB.java:170)
        at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:44064)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:453)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:898)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1693)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1689)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1687)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:90)
        at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:57)
        at org.apache.hadoop.hdfs.DFSClient.callGetBlockLocations(DFSClient.java:935)
        at org.apache.hadoop.hdfs.DFSClient.getLocatedBlocks(DFSClient.java:923)
        at org.apache.hadoop.hdfs.DFSInputStream.fetchLocatedBlocksAndGetLastBlockLength(DFSInputStream.java:157)
        at org.apache.hadoop.hdfs.DFSInputStream.openInfo(DFSInputStream.java:124)
        at org.apache.hadoop.hdfs.DFSInputStream.<init>(DFSInputStream.java:117)
        at org.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:1080)
        at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:245)
        at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:78)
        at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:665)
        at oracle.hadoop.loader.Utils.openInputStream(Utils.java:384)
        at oracle.hadoop.loader.metadata.OraLoaderMetadata.getReader(OraLoaderMetadata.java:736)
        ... 10 more

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