Python pyhive connects hive through SSH tunnel to report an error and solve the problem.

python pyhive through SSH tunnel connection hive, error content is: Could not start SASL: b"Error in sasl_client_start (- 4) SASL (- 4): no mechanism available: Unable to find a callback: 2"

)

ask for advice

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()
Apr.03,2021

win system is difficult to solve


Don't run on windows

Menu