Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
>>> import pyhs2
>>> pyhs2.connect(host=host_server, port=8088, authMechanism="PLAIN", user=username, password=password, database=database)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/pyhs2/", line 7, in connect
return Connection(*args, **kwargs)
File "/Library/Python/2.7/site-packages/pyhs2/", line 46, in __init__
File "/Library/Python/2.7/site-packages/pyhs2/cloudera/", line 74, in open
status, payload = self._recv_sasl_message()
File "/Library/Python/2.7/site-packages/pyhs2/cloudera/", line 95, in _recv_sasl_message
payload = self._trans.readAll(length)
File "/Library/Python/2.7/site-packages/thrift/transport/", line 58, in readAll
chunk = - have)
File "/Library/Python/2.7/site-packages/thrift/transport/", line 120, in read
message='TSocket read 0 bytes')
thrift.transport.TTransport.TTransportException: TSocket read 0 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment