restart_host_component
Restart a specific host component in an Ambari cluster by stopping and then starting it, enabling targeted recovery without affecting other hosts.
Instructions
Restarts a specific component on a specific host in the Ambari cluster (stop then start).
[Tool Role]: Dedicated tool for restarting 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 and wait for completion
Start the component and return request information
Return clear success or error message for LLM automation
[Required Usage Scenarios]:
When users request to restart a component on a specific host (e.g., "restart DataNode on host-A")
When recovering a stuck or malfunctioning single component instance
When applying config changes that require a component-level restart
Args: host_name: Hostname where the component resides (e.g., "hdp-node-01.example.com") component_name: Name of the component to restart (e.g., "DATANODE", "NODEMANAGER")
Returns: Restart 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 |