A Python interface to Hive (and SparkSQL) via Thrift/HiveServer2. Fork of the original PyHive maintained by Acryl Data. Current version: 0.6.18. Release cadence is irregular; latest releases focus on bug fixes and compatibility.
pip install acryl-pyhiveVerified import paths — ran on the pinned version, not inferred.
Connects to Hive and runs a simple query.
Ensure headers are properly set before HTTP calls; do not assume they persist across requests.
Install pure-sasl if you get import errors related to sasl.
Use 'USE database_name' or specify schema in your queries.
Set auth parameter explicitly: 'NONE', 'LDAP', 'KERBEROS', or 'CUSTOM'.