Open noklam opened 4 years ago
Looks like issue more for related with thriftpy2 transport protocol, had something similar with thrift_sasl authentication fix it by adding readall from thriftpy2.
@egormartiniuc Sorry I am not familiar with thrift, is there any fix on it?
There no fix as a library, what you can do is a cheat a bit in the library class TBufferedTransport, as I can see you use NOSASL authentication connection default one. by import from thriftpy2.transport.base import readall and first replace all self._trans.read(X) to readall(self._trans.read, X)
As described in the title. I use this code snippet to connect with impala.
The code snippets can run usually for the first 1 or 2 query, but it will hangs forever quite often. I tested it in a notebook/python console, and both suffer from the same issue.