GitHub Stars
1
User Rating
Not Rated
Forks
0
Issues
0
Views
0
Favorites
0
README
HiveServer2 MCP
A MCP server for HiveServer2.
Installation
Clone the repository:
git clone https://github.com/your-username/hiveserver2-mcp.git cd hiveserver2-mcp
Create a virtual environment:
python3 -m venv venv source venv/bin/activate
Install the dependencies:
pip install -r requirements.txt
Usage
Create a
.env
file:Create a
.env
file in the root of the project and add the following environment variables:HIVESERVER2_HOST=<your_hiveserver2_host> HIVESERVER2_PORT=<your_hiveserver2_port> HIVESERVER2_USER=<your_hiveserver2_user> HIVESERVER2_PASSWORD=<your_hiveserver2_password>
Run the server:
hiveserver2-mcp
Interact with the server:
You can use
curl
to interact with the server.Query:
curl -X POST -H "Content-Type: application/json" -d '{"query": "SELECT * FROM my_table"}' http://localhost:5000/query
Note on sasl
This project does not include the sasl
package as a direct dependency, as it can be difficult to install on some systems. If you are connecting to a Hive instance that requires SASL authentication, you may need to install it manually.
Ubuntu/Debian:
sudo apt-get install -y libsasl2-dev
pip install sasl
macOS:
brew install sasl
pip install sasl
Author Information
0
Followers
1
Repositories
0
Gists
4
Total Contributions
Top Contributors
Threads