restart_service
Restart specific services in an Ambari cluster with a safe stop-start sequence. Automates service restart for maintenance, troubleshooting, or configuration changes, ensuring clear success or error messages for automation workflows.
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 |