John Speidel created AMBARI-5462:
------------------------------------

             Summary: Allow host group scoped configuration to be specified in 
Blueprint
                 Key: AMBARI-5462
                 URL: https://issues.apache.org/jira/browse/AMBARI-5462
             Project: Ambari
          Issue Type: New Feature
            Reporter: John Speidel
            Assignee: John Speidel
             Fix For: 1.6.0


Allow configuration to be specified for host groups.  This configuration will 
provide overrides for all hosts assigned to the host group.  This configuration 
is specified inline within the host group. 

An example of a simple one host group blueprint with both cluster scoped and 
host group scoped configuration.

{code}
{
  "configurations" : [
    {
      "core-site" : {
        "fs.trash.interval" : "480",
        "ipc.client.idlethreshold" : "8500",
        "my.awesome.property" : "excellent"
      }
    },
    {
      "mapred-site" : {
        "tasktracker.http.threads" : "45"
      }
    }
  ],
  "host_groups" : [
    {
      "name" : "host_group_1",
      "configurations" : [
        {
          "core-site" : {
            "fs.trash.interval" : "475"
          }
        }
      ],     
      "components" : [
        {
          "name" : "HDFS_CLIENT"
        },
        {
          "name" : "GANGLIA_SERVER"
        },
        {
          "name" : "AMBARI_SERVER"
        },
        {
          "name" : "MAPREDUCE_CLIENT"
        },
        {
          "name" : "GANGLIA_MONITOR"
        },
        {
          "name" : "DATANODE"
        },
        {
          "name" : "NAMENODE"
        },
        {
          "name" : "JOBTRACKER"
        },
        {
          "name" : "HISTORYSERVER"
        },
        {
          "name" : "SECONDARY_NAMENODE"
        },
        {
          "name" : "NAGIOS_SERVER"
        },
        {
          "name" : "TASKTRACKER"
        }
      ],
      "cardinality" : "1"
    }
  ],
  "Blueprints" : {
    "blueprint_name" : "single-node-test",
    "stack_name" : "HDP",
    "stack_version" : "1.3.3"
  }
}
{code} 

*Note:* Allowing service configurations which are specified external to the 
host group definition to allow for configuration reuse across host groups will 
be handled in a subsequent Jira.

 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to