PyHive icon indicating copy to clipboard operation
PyHive copied to clipboard

"TSocket read 0 bytes" error while running SQL query in a docker container

Open rkhilnani9 opened this issue 4 years ago • 3 comments

We are running a long-ish SQL query in pyhive from inside a python 3.6 container. The query freezes up after 10-15 mins and the error mentioned above is thrown. We are using the following versions :

thrift==0.13.0 sasl==0.2.1 thrift-sasl==0.4.2 PyHive==0.6.3

Any leads/solutions?

Additionally, when we try to query a different dedicated queue using configuration = {'mapred.job.queue.name' : queue_name} inside connect(), we also get the following error sometimes:

thrift.transport.TTransport.TTransportException: unexpected exception

Thanks!

rkhilnani9 avatar Nov 23 '20 15:11 rkhilnani9

@rkhilnani9 hello,Is the problem solved?

cool-joker avatar Mar 17 '21 06:03 cool-joker

Hello, I keep getting this too when polling a cursor from a single Connection object. My first thought it that maybe the current/previous operation needs to be closed using cursor.close() or cursor.cancel() before trying to run execute another query but I haven't seen this mentioned anywhere

lucharo avatar Mar 17 '21 18:03 lucharo

@lucharo tank u,but I found this error when I was querying the data and I tried many versions. When I tested it, I try 'select * from table limit 100' that the results could appear, but the error was reported when 'select * from table'. I still haven't solved the problem

cool-joker avatar Mar 18 '21 01:03 cool-joker