Traceback (most recent call last):
File "mid_tables.py", line 17, in
cursor= conn.cursor()
File "/usr/lib/python2.6/site-packages/impala/hiveserver2.py", line 125, in cursor
session = self.service.open_session(user, configuration)
File "/usr/lib/python2.6/site-packages/impala/hiveserver2.py", line 995, in open_session
resp = self._rpc('OpenSession', req)
File "/usr/lib/python2.6/site-packages/impala/hiveserver2.py", line 923, in rpc
response = self._execute(func_name, request)
File "/usr/lib/python2.6/site-packages/impala/hiveserver2.py", line 940, in _execute
return func(request)
File "/usr/lib/python2.6/site-packages/impala/_thrift_gen/TCLIService/TCLIService.py", line 175, in OpenSession
return self.recv_OpenSession()
File "/usr/lib/python2.6/site-packages/impala/_thrift_gen/TCLIService/TCLIService.py", line 193, in recv_OpenSession
result.read(self._iprot)
File "/usr/lib/python2.6/site-packages/impala/_thrift_gen/TCLIService/TCLIService.py", line 1109, in read
fastbinary.decode_binary(self, iprot.trans, (self._class__, self.thrift_spec))
AttributeError: 'TBufferedTransport' object has no attribute 'trans'
pipinstallthrift=0.9.3
只执行rpc的时候调用方和被调用方的函数签名对不上,考虑各组件的版本问题。
楼主,这个问题解决了吗
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。