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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36a1d-2c043.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36a1d-2c043.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?