hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HIVE-15110) JDBC standalone jar is missing classes from hadoop-commons jar.
Date Wed, 02 Nov 2016 05:58:58 GMT

     [ https://issues.apache.org/jira/browse/HIVE-15110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gopal V resolved HIVE-15110.
----------------------------
    Resolution: Duplicate

> JDBC standalone jar is missing classes from hadoop-commons jar.
> ---------------------------------------------------------------
>
>                 Key: HIVE-15110
>                 URL: https://issues.apache.org/jira/browse/HIVE-15110
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: JBoss Developer Studio
> Version: 9.1.0.GA
> Build id: GA-v20160414-0124-B497
> Build date: 20160414-0124
> Oracle jdk1.8.0_91
>            Reporter: Gary Gregory
>
> - Create a Generic JDBC Driver in Eclipse DTP or JBoss Dev Studio.
> - Connect to a Hive server.
> - You get the error: 
> {noformat}
> java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
> 	at org.apache.hive.jdbc.HiveConnection.createUnderlyingTransport(HiveConnection.java:432)
> 	at org.apache.hive.jdbc.HiveConnection.createBinaryTransport(HiveConnection.java:452)
> 	at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:193)
> 	at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:157)
> 	at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
> 	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:328)
> 	at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
> 	at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
> 	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:96)
> 	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnectionFactory.createConnection(JDBCConnectionFactory.java:53)
> 	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
> 	at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
> 	at org.eclipse.datatools.connectivity.internal.ManagedConnection.createConnection(ManagedConnection.java:166)
> 	at org.eclipse.datatools.connectivity.internal.CreateConnectionJob.run(CreateConnectionJob.java:56)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> 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 java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> 	... 15 more
> {noformat}
> For 2.0.0, I exploded the standalone jar, added the contents of hadoop-common-2.7.2.jar,
and repacked the jar. That works.
> Please fix this as I do not want to do this for all new versions. I have to do this nonesense
because one of the runtime containers I deal with only deals with JDBC drivers that are all
in one jar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message