There are ODBC drivers available for Hive, though they aren’t part of the
open source package and are not free.  Google can help you find them.  As
Elliot says, you can use the Thrift protocol, which is what the JDBC driver
uses.  You can find the thrift definition in the code at
https://github.com/apache/hive/blob/master/service-rpc/if/TCLIService.thrift


Alan.

On Fri, Nov 10, 2017 at 5:43 AM, Elliot West <[email protected]> wrote:

> Hi Jakob,
>
> Assuming that your Hive deployment is running HiveServer2, you could issue
> queries and obtain result sets via its Thrift API. Thrift has a broad set
> of language implementations, including C IIRC. I believe this is also the
> API used by Hive's JDBC connector, so it should be capable from a feature
> set perspective.
>
> Cheers - Elliot.
>
> On 10 November 2017 at 10:28, Jakob Egger <[email protected]> wrote:
>
>> Hi!
>>
>> I'm the developer of a database client tool, and I've received a request
>> to add support for querying Apache Hive.
>>
>> (My tool lets the user execute SQL queries, and it allows browsing tables
>> etc.)
>>
>> As a first step of evaluating this suggestion, I'm trying to find out if
>> there is a convenient way to connect to Hive.
>>
>> From reading the documentation, it seems that the preferred way to
>> connect seems to be using the JDBC driver. Since my app is not written in
>> Java, this is probably not the way to go. Apart from that, I didn't find
>> much on this topic in the docs.
>>
>> I have a few questions:
>>
>> 1) What ways are there to connect to Apache Hive?
>>
>> 2) Is there a C client library?
>>
>> 3) Is there any documentation on the wire protocol that Hive uses for
>> client / server communication?
>>
>> I'd appreciate if someone who knows more about the project could point me
>> in the right direction!
>>
>> Best regards,
>> Jakob
>
>
>

Reply via email to