hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Fouché (JIRA) <>
Subject [jira] [Commented] (HIVE-2935) Implement HiveServer2
Date Mon, 07 Jan 2013 15:50:17 GMT


Nicolas Fouché commented on HIVE-2935:

Using CDH 4.1.2, which includes this patch. I think there's a problem with hive-jdbc which
includes a JDBC driver for the two version of hiveserver.

For the first version of hiveserver, hive-jdbc-0.9.0-cdh4.1.2 depends on libthrift-1.5.0,
which defines org.apache.thrift.TServiceClient as an Interface.

For hiveserver2, hive-jdbc-0.9.0-cdh4.1.2 depends on hive-service-0.9.0-cdh4.1.2, which depends
on hive-service-0.9.0-cdh4.1.2. The later seems to include code from libthrift, and defines
org.apache.thrift.TServiceClient as an abstract class.

Thus this happens:

java.lang.IncompatibleClassChangeError: class org.apache.hive.service.cli.thrift.TCLIService$Client
has interface org.apache.thrift.TServiceClient as super class
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at Source)
	at Source)
	at$000(Unknown Source)
	at$ Source)
	at Method)
	at Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at org.apache.hive.jdbc.HiveConnection.openTransport(
	at org.apache.hive.jdbc.HiveConnection.<init>(

Of course, I just have to remove libthrift from my libpath. But I just wanted to make Carl
Steinbach know. (I used maven-dependency-plugin to get all dependent JARs, without thinking
about what would be useless, or incompatible)
> Implement HiveServer2
> ---------------------
>                 Key: HIVE-2935
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>          Components: Server Infrastructure
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>              Labels: HiveServer2
>         Attachments: beelinepositive.tar.gz, HIVE-2935.1.notest.patch.txt, HIVE-2935.2.notest.patch.txt,
HIVE-2935.2.nothrift.patch.txt, HS2-changed-files-only.patch, HS2-with-thrift-patch-rebased.patch

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message