Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Install all components without starting using Ambari Blueprints

Highlighted

Install all components without starting using Ambari Blueprints

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

3 REPLIES 3

Re: Install all components without starting using Ambari Blueprints

Super Collaborator

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 !!

Re: Install all components without starting using Ambari Blueprints

@bkosaraju,

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

Re: Install all components without starting using Ambari Blueprints

Cloudera Employee

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

  1. INSTALL_AND_START - To install and start components
  2. INSTALL_ONLY - To install components without starting

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)"
  }
}