Implementation
This handler is implemented using thepyHive, a Python library that allows you to use Python code to run SQL commands on Hive.
The required arguments to establish a connection are as follows:
useris the username associated with the database.passwordis the password to authenticate your access.hostis the server IP address or hostname.portis the port through which TCP/IP connection is to be made.databaseis the database name to be connected.authdefaults toCUSTOMif not provided. Check for other options in here.
If you installed MindsDB locally via pip, you need to install all handler dependencies manually. To do so, go to the handler’s folder (mindsdb/integrations/handlers/hive_handler) and run this command:
pip install -r requirements.txt.Usage
In order to make use of this handler and connect to the Hive database in MindsDB, the following syntax can be used:To install
pyHive, the following Linux packages are required:- libsasl2-dev
- sasl2-bin
- libsasl2-2
- libsasl2-dev
- libsasl2-modules
- libsasl2-modules-gssapi-mit