Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

python thrift TSocket read 0 bytes

avatar
New Contributor

Hi every one.

First we are using amazon EC2 for our hbase infrastructure.

We use 25 small instance to run our script (4 process in each instance), the script scan a table and make some computing before putting the new data to some other tables.

The script take some minutes before falling down saying : Exception thrift.transport.TTransport.TTransportException: TTransportException('TSocket read 0 bytes',) in <bound method Scanner.__del__ of <libs.bnet.thrift.hbase.scanner.Scanner instance at 0x7f439dddf7a0>> ignored

 

I had enabled TRACE logging in thrift server and i searched for somme error in the same instant when error happend, without success.

I don't have any idea about what is causing this. if you can help me thanks a lot.

1 ACCEPTED SOLUTION

avatar
New Contributor

Hi every one.

the problem was that thrift close the connection socket after 1 min, than i needed to augment the thrift config key ( on ms) :

hbase.thrift.server.socket.read.timeout

 

View solution in original post

5 REPLIES 5

avatar
New Contributor

Hi every one.

the problem was that thrift close the connection socket after 1 min, than i needed to augment the thrift config key ( on ms) :

hbase.thrift.server.socket.read.timeout

 

avatar

Could you please inform how to modify this timeout?

avatar
New Contributor

avatar

I cannot use the Cloudera interface as I'm running Hive server inside docker container and trying to connect to the Hive server from outside the container through python (PyHive v0.5, python v2.7.13)

avatar
adding these configuration settings as mentioned here (https://issues.apache.org/jira/browse/HIVE-2006😞
1. hive.server.read.socket.timeout=1000
2. hive.server.read.socket.timeout=1000

in the file hive-site.xml also didn't work