python pyhive通過SSH隧道連接hive,報錯內(nèi)容為:Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2'求教from sshtunnel import SSHTunnelForwarder
from pyhive import hive
server = SSHTunnelForwarder(
ssh_address_or_host = ('', 63007),
ssh_username="ngqi",
ssh_password="nyq",
remote_bind_address=('10.10.88.115',10000)
)
server.start()
conn_hive = hive.Connection(host='127.0.0.1', port=10000,username = 'songhj')
server.stop()
添加回答
舉報
0/150
提交
取消