conn.cursor(): impala.error.HiveServer2Error
See original GitHub issue- impyla==0.14.0
- Python 3.6
Sorry I am newbie on this. Any ideas?
from impala.dbapi import connect
conn = connect(host='my ip', port=21050) # it works
# or conn = connect(host='my ip', port=21000) # it works
cursor = conn.cursor() # raise an error
cursor = conn.cursor(user='some user') # raise an error
env/lib/python3.6/site-packages/impala/hiveserver2.py", line 125, in cursor
session = self.service.open_session(user, configuration)
env/lib/python3.6/site-packages/impala/hiveserver2.py", line 998, in open_session
resp = self._rpc('OpenSession', req)
env/lib/python3.6/site-packages/impala/hiveserver2.py", line 924, in _rpc
response = self._execute(func_name, request)
env/lib/python3.6/site-packages/impala/hiveserver2.py", line 957, in _execute
.format(self.retries))
impala.error.HiveServer2Error: Failed after retrying 3 times
Internally, it raise this error on this line session = self.service.open_session(user, configuration)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:10
Top Results From Across the Web
issue trying Impyla - Cloudera Community - 36185
HiveServer2Error : Failed after retrying 3 times" ... conn = connect(host='my.impala.host', port=21050) cursor = conn.cursor()
Read more >impala.error.HiveServer2Error: Failed after retrying 3 times
It means if you want to get different data from the same hive database, you had better close the connection and reconnect hive...
Read more >impyla - PyPI
Python client for the Impala distributed query engine. ... port=21050) cursor = conn.cursor() cursor.execute('SELECT * FROM mytable LIMIT 100') print ...
Read more >impyla访问hive - DB乐之者- 博客园
import impala.dbapi as ipdb conn = ipdb.connect(host="192.168.XX. ... cursor = conn.cursor() cursor.execute('select * From xxxx') ...
Read more >In [2] - Jupyter Notebooks Gallery
sorted(df.error_message.unique().tolist()). Out[23]:. ['"DBAPIError:(impala.error.HiveServer2Error) AnalysisException: Exceeded the maximum depth of an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To help others: It was a authentication issue. I added
auth_mechanism='PLAIN'
.Thanks for the help @cricket007 !