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 `
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e13e399ebb3f7de99d8172fe439537445fb0eb25adef5b1d0ae7bc1c427a86e |
|
MD5 | a36f45ec12660d87b54e861618f8dc41 |
|
BLAKE2b-256 | 3580f24315302548f711b4a72b245219cb5f54c98d606dbb2154050187b13059 |