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


Download files

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

Source Distribution

pzhive-0.1.0.tar.gz (14.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page