Skip to content

[WIP] HIVE-29370: Text-to-SQL with HMS MCP Server#6421

Open
deniskuzZ wants to merge 2 commits intoapache:masterfrom
deniskuzZ:hms-mcp-server
Open

[WIP] HIVE-29370: Text-to-SQL with HMS MCP Server#6421
deniskuzZ wants to merge 2 commits intoapache:masterfrom
deniskuzZ:hms-mcp-server

Conversation

@deniskuzZ
Copy link
Copy Markdown
Member

@deniskuzZ deniskuzZ commented Apr 10, 2026

What changes were proposed in this pull request?

MCP Server that exposes Hive Metastore metadata via the Iceberg REST Catalog API.

Why are the changes needed?

Expose Data Lake metadata through MCP

Does this PR introduce any user-facing change?

No

How was this patch tested?

pip install -r $HIVE_HOME/scripts/nlsql/requirements.txt

mvn clean install -DskipTests -T8 -Pdist -Dmaven.javadoc.skip -Drat.skip --fail-at-end

export HIVE_VERSION=4.3.0-SNAPSHOT
docker-compose --profile llap down --rmi all
./build.sh -hive ${HIVE_VERSION} -hadoop 3.4.2 -tez 0.10.5
./start-hive.sh --llap

export ANTHROPIC_BASE_URL="https://api.anthropic.com"   # or your gateway URL
export ANTHROPIC_AUTH_TOKEN="your-token"                 # or use ANTHROPIC_API_KEY
export ANTHROPIC_MODEL="anthropic.claude-opus-4-6"       
export MCP_SERVER_URL="http://localhost:3000/sse"

$HIVE_HOME/bin/beeline -u "jdbc:hive2://localhost:10000"

beeline> !nlsql show me the top 10 orders by amount
beeline> !nlsql count all rows in the customers table
beeline> !nlsql which tables have more than 1 million rows

@deniskuzZ deniskuzZ changed the title [WIP] HMS MCP Server [WIP] HIVE-29370: HMS MCP Server Apr 10, 2026
@deniskuzZ deniskuzZ changed the title [WIP] HIVE-29370: HMS MCP Server [WIP] HIVE-29370: Text-to-SQL with HMS MCP Server Apr 10, 2026
@Aggarwal-Raghav
Copy link
Copy Markdown
Contributor

I initally thought the implemenation will be in java using spring-ai 😅

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants