restart_service
Restart a specific service in an Ambari cluster by stopping and starting it in sequence. Use this tool to troubleshoot issues, apply configuration changes, or perform maintenance requiring service restart.
Instructions
Restarts a specific service in an Ambari cluster (stop then start).
[Tool Role]: Dedicated tool for automated restart of Ambari services, ensuring safe stop and start sequence.
[Core Functions]:
Stop the specified service and wait for completion
Start the service and wait for completion
Return clear success or error message for LLM automation
[Required Usage Scenarios]:
When users request to "restart" a service (e.g., "restart HDFS", "restart YARN")
When troubleshooting or recovering service issues
When maintenance or configuration changes require a restart
When users mention service restart, safe restart, or automated restart
Args: service_name: Name of the service to restart (e.g., "HDFS", "YARN")
Returns: Restart operation result (success: English completion message, failure: English error message) - Success: "Service '<service_name>' restart operation completed successfully." - Failure: "Error: ..." with details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes |