OEMM Hive Bridges Fails to Connect to Hive Database when Kerberos is Enabled

(Doc ID 2388932.1)

Last updated on APRIL 23, 2018

Applies to:

Oracle Enterprise Metadata Management - Version 12.2.1.1 and later
Information in this document applies to any platform.

Symptoms

On Oracle Enterprise Metadata Management (OEMM) 12.2.1.1 and later, while testing the connection or import using any of OEMM available Hive bridges, the following errors may occur:
 

[6678/main] 2017-12-13 15:56:51 BLIB_D0029 Connecting to 'jdbc:hive2://<HIVE_SERVERNAME>:10000/default;principal=hive/<HIVE_PRINCIPAL>;'
[6678/main] 2017-12-13 15:56:51 BLIB_D0029 Loading keytab file 'D:\OEMM\OracleMetadataManagement\java\Jdbc\Kerbros\hive.keytab'
[6678/main] 2017-12-13 15:56:51 MBCM_F0029 java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.createConnection(HiveDatabaseImporter.java:1267)
at MITI.bridges.hive.Import.DatabaseImporter.<init>(DatabaseImporter.java:149)
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.<init>(HiveDatabaseImporter.java:167)
at MITI.bridges.hive.Import.service.HiveImportBridge.getDatabaseImporter(HiveImportBridge.java:149)
at MITI.bridges.hive.Import.ImportBridge.run(ImportBridge.java:104)
at MITI.bridges.javabridge.JavaBridge.runImport(JavaBridge.java:101)
at MITI.bridges.javabridge.JavaBridge.main(JavaBridge.java:475)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more


[6695/main] 2017-12-14 15:54:57 MBCM_F0029 java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
at org.apache.hadoop.conf.Configuration$DeprecationContext.<init>(Configuration.java:416)
at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:456)
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.createConnection(HiveDatabaseImporter.java:1267)
at MITI.bridges.hive.Import.DatabaseImporter.<init>(DatabaseImporter.java:149)
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.<init>(HiveDatabaseImporter.java:167)
at MITI.bridges.hive.Import.service.HiveImportBridge.getDatabaseImporter(HiveImportBridge.java:149)
at MITI.bridges.hive.Import.ImportBridge.run(ImportBridge.java:104)
at MITI.bridges.javabridge.JavaBridge.runImport(JavaBridge.java:101)
at MITI.bridges.javabridge.JavaBridge.main(JavaBridge.java:475)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.UnmodifiableMap
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 9 more



[6661/main] 2017-12-13 21:56:20 MBCM_F0029 java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:336)
at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:349)
at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:431)
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.createConnection(HiveDatabaseImporter.java:1267)
at MITI.bridges.hive.Import.DatabaseImporter.<init>(DatabaseImporter.java:149)
at MITI.bridges.hive.Import.service.HiveDatabaseImporter.<init>(HiveDatabaseImporter.java:167)
at MITI.bridges.hive.Import.service.HiveImportBridge.getDatabaseImporter(HiveImportBridge.java:149)
at MITI.bridges.hive.Import.ImportBridge.run(ImportBridge.java:104)
at MITI.bridges.javabridge.JavaBridge.runImport(JavaBridge.java:101)
at MITI.bridges.javabridge.JavaBridge.main(JavaBridge.java:475)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

 

Changes

 

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