dropbox / dropbox/PyHive

OverflowError: signed integer is greater than maximum

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
545
PR merge metrics
No merged PRs in 30d

Description

we use django and pyhive to connect hiveserver2, when qps is larger than 10, it will get these two errors, we cant find similar errors in google , we want to know why this error will happen, thanks very much

error one:
File "/home/hduser0539/nord/testing/common/hive_client_1.py", line 73, in close
self.conn.close()
File "build/bdist.linux-x86_64/egg/pyhive/hive.py", line 179, in close
response = self._client.CloseSession(req)
File "build/bdist.linux-x86_64/egg/TCLIService/TCLIService.py", line 218, in CloseSession
return self.recv_CloseSession()
File "build/bdist.linux-x86_64/egg/TCLIService/TCLIService.py", line 230, in recv_CloseSession (fname, mtype, rseqid) = iprot.readMessageBegin()
File"/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/sitepackages/thrift/protocol/TBinaryProtocol.py", line 134, in readMessageBegin
sz = self.readI32()
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/sitepackages/thrift/protocol/TBinaryProtocol.py", line 217, in readI32
buff = self.trans.readAll(4)
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/sitepackages/thrift/transport/TTransport.py", line 60, in readAll
chunk = self.read(sz - have)
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/site-packages/thrift_sasl/__init__.py", line 159, in read
self._read_frame()
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/site-packages/thrift_sasl/__init__.py", line 176, in _read_frame
decoded = read_all_compat(self._trans, length)
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/site-packages/thrift_sasl/six.py", line 31, in
read_all_compat = lambda trans, sz: trans.readAll(sz)
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/site-packages/thrift/transport/TTransport.py", line 60, in readAll
chunk = self.read(sz - have)
File "/appcom/AnacondaInstall/anaconda2-4.3.1/lib/python2.7/site-packages/thrift/transport/TSocket.py", line 117, in read
buff = self.handle.recv(sz)
OverflowError: signed integer is greater than maximum

error two:

File "/home/hduser0539/nord/testing/common/hive_client_1.py", line 215, in checkStatus cursor.execute(showTableSql)
File "build/bdist.linux-x86_64/egg/pyhive/hive.py", line 295, in execute
response = self._connection.client.ExecuteStatement(req)
File "build/bdist.linux-x86_64/egg/TCLIService/TCLIService.py", line 280, in ExecuteStatement return self.recv_ExecuteStatement()
File "build/bdist.linux-x86_64/egg/TCLIService/TCLIService.py", line 303, in recv_ExecuteStatement raise TApplicationException(TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result")

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.