restart_host_component
Restarts a specific component on a given host by stopping then starting it, enabling targeted recovery or config changes 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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host_name": "<host_name>",
"component_name": "<component_name>"
},
"name": "restart_host_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_name | Yes | Hostname where the component resides (e.g., "hdp-node-01.example.com") | |
| component_name | Yes | Name of the component to restart (e.g., "DATANODE", "NODEMANAGER") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |