[
https://issues.apache.org/jira/browse/AMBARI-6275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15353476#comment-15353476
]
Chen He commented on AMBARI-6275:
---------------------------------
curl -i -u admin:admin -X POST
http://localhost:8080/api/v1/clusters/orch-chehe/hosts/newHostName -d
'{"host_group" :{"name": "slaves","cardinality" : "1+","components": [{ "name":
"DATANODE" },{ "name": "NODEMANAGER" },{ "name" : "SPARK_CLIENT"},{ "name":
"MAPREDUCE2_CLIENT" }]}}'
HTTP/1.1 400 Bad Request
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: admin
Set-Cookie: AMBARISESSIONID=14197dmov9sr5142xjo3oimzp;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 201
Server: Jetty(8.1.17.v20150415)
{
"status" : 400,
"message" : "The properties [host_group/name, host_group/components,
host_group/cardinality] specified in the request or predicate are not supported
for the resource type Host."
}
> Add support for "add hosts" with Blueprints API
> -----------------------------------------------
>
> Key: AMBARI-6275
> URL: https://issues.apache.org/jira/browse/AMBARI-6275
> Project: Ambari
> Issue Type: Epic
> Components: ambari-server
> Affects Versions: 1.7.0
> Reporter: Yusaku Sako
> Assignee: John Speidel
> Fix For: 2.1.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)