question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

3reactions
huanqingdongcommented, Feb 22, 2019

DEBUG @paulocheque I want to know how to config log for DEBUG mode,thank you !

3reactions
paulochequecommented, Mar 22, 2017

To help others: It was a authentication issue. I added auth_mechanism='PLAIN'.

Thanks for the help @cricket007 !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found