Background
The Stack definitions can be found in the source tree at /ambari-server/src/main/resources/stacks
. After you install the Ambari Server, the Stack definitions can be found at /var/lib/ambari-server/resources/stacks
The structure of a Stack definition is as follows:
|_ stacks |_ <stack_name> |_ <stack_version> metainfo.xml |_ hooks |_ repos repoinfo.xml |_ services |_ <service_name> metainfo.xml metrics.json |_ configuration configuration files |_ package files, scripts, templates
Lifecycle of a Component
Default Commands
Custom Commands
Stack Definition
Management Scripts