Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

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

@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

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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.