- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
python thrift TSocket read 0 bytes
- Labels:
-
Apache HBase
-
HDFS
Created on 02-22-2017 09:22 AM - edited 09-16-2022 04:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 02-28-2017 05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 02-28-2017 05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 10-14-2017 12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please inform how to modify this timeout?
Created 10-17-2017 02:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://www.cloudera.com/documentation/enterprise/5-6-x/topics/cm_mc_mod_configs.html
Created on 10-23-2017 01:47 AM - edited 10-23-2017 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Created 10-23-2017 04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. hive.server.read.socket.timeout=1000
2. hive.server.read.socket.timeout=1000
in the file hive-site.xml also didn't work
