A recipe is a script that runs on all nodes of a selected host group at a specific time. You can use recipes to create and run scripts that perform specific tasks on your Data Hub or Data Lake cluster nodes.
You can use recipes for tasks such as installing additional software or performing advanced cluster configuration. For example, you can use a recipe to put a JAR file on the Hadoop classpath.
Recipes can be uploaded and managed via the CDP web interface or CLI and then selected, when needed, for a specific cluster and for a specific host group. If selected, they will be executed on a specific host group at a specified time.
Recipes are stored on the Cloudera Manager server for the lifetime of the master node, and are executed at specific times of your choosing:
- pre-cluster-manager-start: During a Data Hub or Data Lake deployment, the script will be executed on every node before the CM server starts.
- post-cluster-manager-start: During a Data Hub or Data Lake deployment, the script will be executed on every node after the CM server starts, but before cluster installation.
- post-cluster-install: The script will be executed on every node after cluster installation on the CM server is finished.
- pre-termination: The script will be executed on every node before cluster termination.