https://cwiki.apache.org/confluence/display/Hive/HiveClient#HiveClient-Python appears to be outdated.
When I add this to /etc/profile:
export PYTHONP
This can be a quick hack to connect hive and python,
from pyhive import hive cursor = hive.connect('YOUR_HOST_NAME').cursor() cursor.execute('SELECT * from table_name LIMIT 5',async=True) print cursor.fetchall()
Output: List of Tuples