<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged hadoop</title>
<link>https://coderlegion.com/tag/hadoop</link>
<description>Powered by Question2Answer</description>
<item>
<title>MCP-Ambari-API</title>
<link>https://coderlegion.com/16385/mcp-ambari-api</link>
<description>&lt;h3 id=&quot;what-is-mcp-ambari-api-&quot;&gt;What is MCP-Ambari-API?&lt;/h3&gt;
&lt;p&gt;A &lt;strong&gt;Model Context Protocol (MCP) server&lt;/strong&gt; for Apache Ambari that brings &lt;br&gt;
natural language operations to Hadoop cluster management. Works with &lt;br&gt;
Claude Desktop, Claude Code, OpenWebUI, or any MCP-compatible LLM client.&lt;/p&gt;
&lt;p&gt;Stop juggling Ambari Web UI, curl commands, and SSH sessions. Just ask:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&quot;Show me the HDFS DFSAdmin report&quot;&lt;/li&gt;
&lt;li&gt;&quot;Restart YARN service in cluster TEST-AMBARI&quot;&lt;/li&gt;
&lt;li&gt;&quot;Which DataNodes have high heap memory usage in the last 30 minutes?&quot;&lt;/li&gt;
&lt;li&gt;&quot;List all current CRITICAL alerts grouped by service&quot;&lt;/li&gt;
&lt;li&gt;&quot;Compare NameNode and DataNode JVM memory over the past hour&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;why-i-built-it&quot;&gt;Why I built it&lt;/h3&gt;
&lt;p&gt;Day-to-day Ambari operations — checking service status, inspecting &lt;br&gt;
configs across host groups, querying AMS metrics, diagnosing alerts — &lt;br&gt;
require constant context switching between the Web UI, CLI, and &lt;br&gt;
documentation. I wanted an LLM agent that could translate operator &lt;br&gt;
intent into precise Ambari REST API calls, with proper safety guards &lt;br&gt;
for destructive operations.&lt;/p&gt;
&lt;h3 id=&quot;key-features&quot;&gt;Key Features&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Service Operations&lt;/strong&gt;: Start/stop/restart HDFS, YARN, Spark, HBase, &lt;br&gt;
and other Hadoop services individually or in bulk&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configuration Management&lt;/strong&gt;: Unified &lt;code&gt;dump_configurations&lt;/code&gt; tool with &lt;br&gt;
filtering, summarization, and bulk export across all config types&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AMS Metrics Intelligence&lt;/strong&gt;: Catalog-driven exact-match queries &lt;br&gt;
against Ambari Metrics Service with auto-discovery of appIds and &lt;br&gt;
metric names&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HDFS DFSAdmin Reports&lt;/strong&gt;: Generate &lt;code&gt;hdfs dfsadmin -report&lt;/code&gt;-style &lt;br&gt;
capacity and DataNode summaries through natural language&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Alert Management&lt;/strong&gt;: Unified tool for current and historical alerts &lt;br&gt;
with state, scope, and time-range filtering&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multi-Cluster Support&lt;/strong&gt;: Configure multiple Ambari environments and &lt;br&gt;
switch between them via MCP server entries&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Safety Guards&lt;/strong&gt;: Bulk operations require confirmation, prompt &lt;br&gt;
templates guide LLMs through risky commands&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bearer Token Auth&lt;/strong&gt;: Production-ready authentication for &lt;br&gt;
streamable-http mode&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flexible Transports&lt;/strong&gt;: stdio for local Claude Desktop, &lt;br&gt;
streamable-http for remote/Docker deployments&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;installation&quot;&gt;Installation&lt;/h3&gt;
&lt;p&gt;PyPI package available:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;uvx --python 3.12 mcp-ambari-api
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Claude Desktop config:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;mcpServers&quot;: {
    &quot;mcp-ambari-api&quot;: {
      &quot;command&quot;: &quot;uvx&quot;,
      &quot;args&quot;: [&quot;--python&quot;, &quot;3.12&quot;, &quot;mcp-ambari-api&quot;],
      &quot;env&quot;: {
        &quot;AMBARI_HOST&quot;: &quot;your-ambari-host&quot;,
        &quot;AMBARI_PORT&quot;: &quot;8080&quot;,
        &quot;AMBARI_USER&quot;: &quot;admin&quot;,
        &quot;AMBARI_PASS&quot;: &quot;admin&quot;,
        &quot;AMBARI_CLUSTER_NAME&quot;: &quot;TEST-AMBARI&quot;
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or run the full Docker Compose stack with MCP-Server, MCPO Proxy, and &lt;br&gt;
OpenWebUI in 5 minutes.&lt;/p&gt;
&lt;h3 id=&quot;tech-stack&quot;&gt;Tech Stack&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Python 3.12 + asyncio&lt;/li&gt;
&lt;li&gt;FastMCP framework&lt;/li&gt;
&lt;li&gt;Apache Ambari REST API (2.7+)&lt;/li&gt;
&lt;li&gt;stdio and streamable-http transports&lt;/li&gt;
&lt;li&gt;Available on PyPI, Docker Hub, and Smithery&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;looking-for-feedback&quot;&gt;Looking for Feedback&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Which additional Ambari areas should I cover next? (Kerberos config? &lt;br&gt;
Stack/repo management? Service-specific deep dives?)&lt;/li&gt;
&lt;li&gt;How should destructive bulk operations (stop_all_services) be gated &lt;br&gt;
beyond current confirmation prompts?&lt;/li&gt;
&lt;li&gt;Anyone running this against large production clusters — performance &lt;br&gt;
feedback on AMS metric queries welcome&lt;/li&gt;
&lt;li&gt;Cross-version testing reports (Ambari 2.7 vs 3.0 edge cases)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Repo&lt;/strong&gt;: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/call518/MCP-Ambari-API&quot;&gt;https://github.com/call518/MCP-Ambari-API&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;a rel=&quot;nofollow&quot; href=&quot;https://pypi.org/project/MCP-Ambari-API/&quot;&gt;https://pypi.org/project/MCP-Ambari-API/&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Smithery&lt;/strong&gt;: &lt;a rel=&quot;nofollow&quot; href=&quot;https://smithery.ai/server/@call518/mcp-ambari-api&quot;&gt;https://smithery.ai/server/@call518/mcp-ambari-api&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;DeepWiki&lt;/strong&gt;: &lt;a rel=&quot;nofollow&quot; href=&quot;https://deepwiki.com/call518/MCP-Ambari-API&quot;&gt;https://deepwiki.com/call518/MCP-Ambari-API&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;⭐ Stars, issues, and PRs welcome. The codebase includes an &lt;br&gt;
&quot;Adding Custom Tools&quot; guide for easy extension to your organization's &lt;br&gt;
specific Hadoop monitoring needs.&lt;/p&gt;
</description>
<category>Launches</category>
<guid isPermaLink="true">https://coderlegion.com/16385/mcp-ambari-api</guid>
<pubDate>Sat, 02 May 2026 07:24:38 +0000</pubDate>
</item>
</channel>
</rss>