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.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8beaa35d6f22b5d58fac7b216375266991a6f1c941cce4c4ddd8cebe211336a0 |
|
MD5 | 5a4fbe17b180a81e50c12d6d8f0506b1 |
|
BLAKE2b-256 | 9b8a4dc248141a5d8396c93b28abdf0d46d7b260fea0fd46197b7921e447cfd4 |