OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Commented] (ATLAS-2541) Add hbase-server jar for Hive hook packaging


    [ https://issues.apache.org/jira/browse/ATLAS-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16466206#comment-16466206 ] 

Ramesh Mani commented on ATLAS-2541:
------------------------------------

https://issues.apache.org/jira/browse/ATLAS-2649 this will have this change included in it.

> Add hbase-server jar for Hive hook packaging
> --------------------------------------------
>
>                 Key: ATLAS-2541
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2541
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 1.0.0-alpha
>            Reporter: Chengbing Liu
>            Priority: Major
>         Attachments: ATLAS-2541.01.patch
>
>
> When importing Hive metadata using Hive bridge, a NoClassDefFoundError exception was thrown:
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/mapreduce/TableInputFormatBase
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>     at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
>     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)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:348)
>     at org.apache.hadoop.hive.ql.metadata.Table.getInputFormatClass(Table.java:321)
>     at org.apache.hadoop.hive.ql.metadata.Table.checkValidity(Table.java:197)
>     at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1040)
>     at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:973)
>     at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importTable(HiveMetaStoreBridge.java:300)
>     at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importTables(HiveMetaStoreBridge.java:284)
>     at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:155)
>     at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:146)
>     at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:659)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
>     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)
>     ... 23 more
> {code}
> The cause is not having {{org.apache.hadoop.hbase.mapreduce.TableInputFormatBase}} on the classpath. Currently we have only hbase-common jar on hive hook packaging. Simply adding hbase-server jar solves the problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)