Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "host_groups" : [
    {
      "name" : "host_group_1",
      "componentsconfigurations" : [
        {
          "nameglobal" : "NAMENODE"{
      },
       {"nagios_contact": "me@my-awesome-domain.example"
        "name" : "SECONDARY_NAMENODE"
}
        }
      ],
      "components" : [
        {
          "name" : "DATANODENAMENODE"
        },
        {
          "name" : "HDFSSECONDARY_CLIENTNAMENODE"
        },        
        {
          "name" : "RESOURCEMANAGERDATANODE"
        },
        {
          "name" : "NODEMANAGERHDFS_CLIENT"
        },
        {
          "name" : "YARN_CLIENTRESOURCEMANAGER"
        },
        {
          "name" : "HISTORYSERVERNODEMANAGER"
        },
        {
          "name" : "MAPREDUCE2YARN_CLIENT"
        },
        {
          "name" : "ZOOKEEPER_SERVERHISTORYSERVER"
        },
        {
          "name" : "ZOOKEEPERMAPREDUCE2_CLIENT"
        },
      ],  {
          "cardinalityname" : "1ZOOKEEPER_SERVER"
        },
    ],
  "Blueprints" : {
          "stack_name" : "HDPZOOKEEPER_CLIENT",
    "stack_version" : "2.0"
  }
}

 

,
        {
          "name" : "NAGIOS_SERVER"
        }
      ],
      "cardinality" : "1"
    }
  ],
  "Blueprints" : {
    "stack_name" : "HDP",
    "stack_version" : "2.0"
  }
}

 

Register blueprint with Ambari Server

...

We are performing a single-node install and the blueprint above has one host group. Therefore, for our cluster instance, we define one host in host_group_1 and reference the single-node-hdfs-yarn blueprint.

Code Block
{
  "blueprint""blueprint" : "single-node-hdfs-yarn",
  "default-password" : "singlemy-nodesuper-hdfssecret-yarnpassword",
  "host_groups" :[
    { 
      "name" : "host_group_1",  
      "hosts" : [          
        { 
          "fqdn" : "c6401.ambari.apache.org"
        }
      ]
    }
  ]
}

...

The blueprint ("multi-node-hdfs-yarn") below defines with two host groups (a "master" and the "slaves") which hosts the various Service components (masters, slaves and clients)..

Code Block
{
  "host_groups" : [
    {
      "name" : "master",
      "configurations" : [
        {
          "global
Code Block
{
  "host_groups" : [{
    {
        "namenagios_contact" : "master"me@my-awesome-domain.example"
          }
        }
      ],
      "components" : [

        {
          "name" : "NAMENODE"
        },
        {
          "name" : "SECONDARY_NAMENODE"
        },        
        {
          "name" : "RESOURCEMANAGER"
        },
        {
          "name" : "HISTORYSERVER"
        },
        {
          "name" : "NAGIOS_SERVER"
        },
        {
          "name" : "ZOOKEEPER_SERVER"
        }
      ],
      "cardinality" : "1"
    },
    {
      "name" : "slaves",
      "components" : [
        {
          "name" : "DATANODE"
        },
        {
          "name" : "HDFS_CLIENT"
        },
        {
          "name" : "NODEMANAGER"
        },
        {
          "name" : "YARN_CLIENT"
        },
        {
          "name" : "MAPREDUCE2_CLIENT"
        },
        {
          "name" : "ZOOKEEPER_CLIENT"
        }
      ],
      "cardinality" : "2"
    }
  ],
  "Blueprints" : {
    "stack_name" : "HDP",
    "stack_version" : "2.0"
  }
}

...