stop_host_component
Stop a specified component on a host in an Ambari cluster to isolate it for decommissioning or troubleshooting.
Instructions
Stops a specific component on a specific host in the Ambari cluster.
[Tool Role]: Dedicated tool for stopping individual host-level components, enabling fine-grained control without affecting other hosts or the overall service.
[Core Functions]:
Stop the specified component on the given host
Skip if the component is already in INSTALLED (stopped) state
Return request information for progress tracking
[Required Usage Scenarios]:
When users request to stop a component on a specific host (e.g., "stop DataNode on host-A")
When decommissioning or isolating a specific node's component
When troubleshooting a single component instance
Args: host_name: Hostname where the component resides (e.g., "hdp-node-01.example.com") component_name: Name of the component to stop (e.g., "DATANODE", "NODEMANAGER")
Returns: Stop operation result (success: request info, failure: error message)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_name | Yes | ||
| component_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |