Skip to main content

No project description provided

Project description

# pzhive support hive zookeeper HA mode(based on pyhive and kazoo)

# requirements kazoo pyhive

# example

from pzhive import pzhive

cursor = pzhive.connect_by_zk(zk_url=”zk_host:2181”,
zk_name_space=”name_space”, auth=”KERBEROS”, configuration={“hive.server2.proxy.user”: “hadoop”}, kerberos_service_name=”hive”, kerberos_service_host=”xxx”, database=”default”)

cursor.execute(“show tables”) print(cursor.fetchall())

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pzhive, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pzhive-0.1.0.tar.gz (14.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page