Created 04-16-2018 01:42 PM
I am installing a HDP cluster using Ambari Blueprints. When I call the REST API , the installation process starts and it installs all the components and then starts them. I do not want to start all the components. Is there a way in which we can specify only to install the components without starting them. I want all the components to be installed and in stopped state.
.
Thanks
Created 04-17-2018 12:41 AM
Hi @Aditya Sirna,
In blueprints service_settings is the section to specify if services should be set with auto restart once the cluster is deployed.
To configure it, specify "recover_enabled" property to either "true" (auto restart), or "false" (do not auto restart).
"settings": [ "service_settings":[ { "name":"HDFS", "recovery_enabled":"false" }, { "name":"ZOOKEEPER", "recovery_enabled":"false" } ] ],
hope this helps !!
Created 04-17-2018 08:39 AM
I tried setting this but it doesn't work. I guess this is for service auto start. Do you know any other setting where I can do this
Created 09-19-2018 11:41 AM
You can set "provision_action" at component level or at the top of blueprint.
When it is set on blueprint level, applicable for all components (no need to set for individual components). However, this property can be overwritten by component level setting.
This property accepts two values
Default value is 'INSTALL_AND_START'. For more details - https://cwiki.apache.org/confluence/display/AMBARI/Blueprints
{ "configurations": [ { "configuration-type": { "property-name": "property-value", "property-name2": "property-value" } }, { "configuration-type2": { "property-name": "property-value" } } ], "host_groups": [ { "components": [ { "name": "component-name" }, { "name": "component-name2", "provision_action": "(INSTALL_AND_START | INSTALL_ONLY)" } ], "configurations": [ { "configuration-type": { "property-name": "property-value" } } ], "name": "host-group-name", "cardinality": "1" } ], "Blueprints": { "security": { ... }, "stack_name": "HDP", "stack_version": "2.1", "provision_action": "(INSTALL_AND_START | INSTALL_ONLY)" } }