cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
727 stars 249 forks source link

impyla should support connecting to Hive's HiveServer2 #78

Closed lskuff closed 9 years ago

lskuff commented 9 years ago

It would be useful if impyla was compatible with Hive's HiveServer2 implementations. In theory, since Impala and Hive both implement the same HS2 API, this should work fine aside from Impala specific query options.

lskuff commented 9 years ago

Note - a1053ce fixes Impyla so functionally queries can run against Hive and Impala. There is a follow on change that's needed to allow Impyla to connect to HS2 for all security modes (set via the 'hive.server2.authentication' configuration. Specifically impyla will now work with unsecure (NOSASL) connections and should also work with Kerberized connections (SASL GSSAPI mechanism). HiveServer2's default transport is actually PLAIN SASL, which does not currently work. This will be addressed in a follow on change.