Open laserson opened 9 years ago
cc @szehon if you're gonna knock this out.
More notes from Lenni
So I found the problem with PLAIN sasl. It was because the username and password must be set and non-empty or the connection fails, even though they are not really used. When you enable LDAP it will force impyla to use PLAIN SASL, but will doesn't actually use LDAP anywhere for authentication.This allows the connection to succeed against Hive.
For example, this now works to connect to Hive using the PLAIN SASL: conn = connect(host='vd0214.halxg.cloudera.com', port=10000, use_ldap=True, ldap_user='user', ldap_password='pass')
Thanks, @lskuff mentioned he is also interested in taking a look.
Patch submitted here: https://github.com/cloudera/impyla/pull/93
It is hard to automatically detect whether the server is Hive or Impala because you need to connect before calling any RPCs that might help.
Follow on to @lskuff's comment in #78.