Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/olh/oraloader-1.1.0.0.1/lib/libolh11.so (Doc ID 1446454.1)

Last updated on OCTOBER 20, 2013

Applies to:

Oracle Loader for Hadoop - Version 1.1.0.0.0 and later
Linux x86-64
***Checked for relevance on 21-Oct-2013***

Symptoms

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

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/olh/oraloader-1.1.0.0.1/lib/libolh11.so: libclntsh.so.11.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at oracle.hadoop.loader.lib.output.OCIOutputFormat.loadNativeLib(OCIOutputFormat.java:202)
at oracle.hadoop.loader.lib.output.OCIOutputFormat.checkOutputSpecs(OCIOutputFormat.java:468)
at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:872)
at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:833)
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:1127)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:833)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:476)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:506)
at oracle.hadoop.loader.OraLoader.run(OraLoader.java:559)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at oracle.hadoop.loader.OraLoader.main(OraLoader.java:734)
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:186)

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