Не удается подключиться к незащищенному Hive с помощью Pyhive/impyla. Не удалось запустить ошибку SASL
Я пытаюсь получить доступ к незащищенному улью (hive.server2.authentication NONE), и я получаю следующее сообщение об ошибке в pyhive и impala:
TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2
Мой код имплы:
from impala.dbapi import connect
conn = connect(host='my_host_name', port=10000, auth_mechanism='PLAIN')
cursor = conn.cursor()
cursor.execute('SHOW TABLES')
print cursor.description # prints the result set's schema
for table in cursor.fetchall():
print table
results = cursor.fetchall()
мой код pyhive:
from pyhive import hive
conn = hive.Connection(host='my_host_name' , port=10000, auth='NONE' )
cursor = conn.cursor()
cursor.execute("SHOW TABLES")
for table in cursor.fetchall():
print table
Есть идеи, как это решить? Или любые другие API-интерфейсы Python, которые позволяют мне подключаться к улью?