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.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1165891e677618187b66eea7725683375190da30ba55d534bdebba28871fede8 |
|
MD5 | 1ccd2d65374247548b79e627e2220b20 |
|
BLAKE2b-256 | f9ae6f50638ed0caac9ee715f6a9c616e57aed0b42d37bd47b1fd0cd0bc9f83f |