...
These scripts should be provided in the <service-id>/<service-version>/package/scripts folder.
Folder | Purpose |
---|---|
package/scripts | Contains scripts invoked by Ambari. These scripts are loaded into the execution path with the correct environment. Example: HDFS |
package/files | Contains files used by above scripts. Generally these are other scripts (bash, python, etc.) invoked as a separate process. Example: checkWebUI.py (HDFS) is run in HDFS service-check to determine if Journal Nodes are available |
package/templates | Template files used by above scripts to generate files on managed hosts. These are generally configuration files required by the service to operate. |
...
Python
Ambari by default supports Python scripts for management of service and components.
Component scripts should extend resource_management.Script
class and provide methods required for that component's lifecycle.
Configuration
Files
Alerts
Kerberos
...
Command Order
Repositories
Hooks
Configurations
Stack Advisor
...