[
https://issues.apache.org/jira/browse/AMBARI-6275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14179323#comment-14179323
]
John Speidel commented on AMBARI-6275:
--------------------------------------
[~jaoki] In both cases, we are adding hosts.
The only difference being how we specify which components are going to be
deployed to each host.
In the first case, the set of components for a new host(s) will be obtained
from an existing cluster host using a name specified in the host->component
mapping for the new host.
In the second case, the set of components is obtained from a named blueprint
hostgroup just like it currently is done for BP cluster creation.
For example (for illustrative purposes only, not an api proposal):
Case 1: specify an existing host that will be "cloned" with regards to
components/configuration
"host_groups" : [
{
"hosts" : [
{
"fqdn" : "192.168.1.2"
},
{
"fqdn" : "192.168.1.3"
}
],
"host_to_clone" : "existingHost.foo.com"
}
]
Case 2: Specify a blueprint/hostgroup from which to obtain the component set
for the new host(s)
"host_groups" : [
{
"hosts" : [
{
"fqdn" : "192.168.1.2"
},
{
"fqdn" : "192.168.1.3"
}
],
"blueprint" : "myBlueprint",
"host_group" : "slaves"
}
]
In either case, the above examples would add 2 new hosts to the cluster.
> Add support for "add hosts" with Blueprints API
> -----------------------------------------------
>
> Key: AMBARI-6275
> URL: https://issues.apache.org/jira/browse/AMBARI-6275
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-server
> Affects Versions: 1.7.0
> Reporter: Yusaku Sako
> Assignee: John Speidel
> Fix For: 2.0.0
>
>
> Support for "adding hosts" based on *blueprint* style *host_group* via Ambari
> REST API. There are two scenarios to consider for this JIRA:
> 1) Add hosts based on an existing host in the cluster (and it's *blueprint*
> style *host_group* component layout). This enables the user to add hosts with
> components similar to existing hosts in the cluster. For example: expand this
> cluster with these X hosts and make each of these hosts like Y host
> (components + configs) existing in the cluster.
> 2) Add hosts based on components + configs. This would be a verbose method
> that uses *blueprint* style *host_groups* and *configs* to allow you to add
> hosts to a cluster that do not necessarily have a component layout or config
> of a similar host existing in the cluster. For example: expand this cluster
> with these X hosts and make each of these hosts include Y components with Z
> configs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)