HiveQL Kernel
Project description
# HiveQL Kernel
If you are going to connect using kerberos:
` sudo apt-get install python3-dev libsasl2-dev libsasl2-2 libsasl2-modules-gssapi-mit `
To install the kernel:
` pip install --upgrade hiveqlKernel jupyter hiveql install --user `
Run tests:
` python -m pytest `
How to use in Notebooks:
First create your connection, inside a Notebook cell configure the connection:
` $$ url=hive://<kerberos-username>@<hive-host>:<hive-port>/<db-name> $$ connect_args={"auth": "KERBEROS","kerberos_service_name": "hive"} $$ pool_size=5 $$ max_overflow=10 `
These args are passed to sqlalchemy, who registered pyHive as the ‘hive’ SQL back-end. See [github.com/dropbox/PyHive](https://github.com/dropbox/PyHive/#sqlalchemy).
You can also change the default display limit (=20) like this :
` $$ default_limit=50 `
You can now type HiveQL inside the next Notebook cells:
` SHOW TABLES `
Have fun!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hiveqlKernel-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e3f799d604a22839f9df6638ba07fd37c23cb391a7bf5b382e71bfc8e5c2607 |
|
MD5 | 6699d9ef5bde5e77929d0ad5cb307a1e |
|
BLAKE2b-256 | f4e2a801cbe3001fbba4b9d230be4572f98fd5b20fb81825b998d77a5f0f6c52 |