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}
Defining a Service and Components
The metainfo.xml
file in a Service describes the service, the components of the service and the management scripts to use for executing commands.
Categories of Components
A component of a service can be either a MASTER, SLAVE or CLIENT.
Management Scripts
TBD
Default Commands
TBD
Custom Commands
TBD
Metrics
TBD