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 details)

Uploaded Source

File details

Details for the file pzhive-0.1.0.tar.gz.

File metadata

  • Download URL: pzhive-0.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.9

File hashes

Hashes for pzhive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf561addabbc25aa6c249de62026b8cceaf78aed098a0397b985465d36417a6f
MD5 b1c4571225aadd04e46bfcf26fae3a61
BLAKE2b-256 976ffb80f0b66e455b901ce461dfe01b2c08db27546e61081a9e141040cf652d

See more details on using hashes here.

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