I need to connect to the Hiveserver2 from Python 3.4.5 and the code is being executed on the hadoop cluster itself. Usually, I execute hive -e "some query"
from command line. From other servers, we connect to Hiveserver2 using username only mechanism providing IP and port. However, that should not be necessary as here I am running the code on same server.
I have tried the following:
- Access Hive Data Using Python
- https://github.com/cloudera/impyla/issues/165
- How to connect to Hadoop Hive through python via pyhs2?
- https://pypi.python.org/pypi/impyla
but no success. I am getting error at connection stage itself. I can share errors if anyone requires.
If nothing else, it would be great if someone can elaborate on the answer to Hive client for Python 3.x