Vitaly Brodetskyi created AMBARI-12547:
------------------------------------------
Summary: There's no easy way to start all host components on a
host via the API
Key: AMBARI-12547
URL: https://issues.apache.org/jira/browse/AMBARI-12547
Project: Ambari
Issue Type: Task
Components: ambari-server
Affects Versions: 1.7.0
Reporter: Vitaly Brodetskyi
Assignee: Vitaly Brodetskyi
Fix For: 2.2.0
While issuing the API to try to start all host components on c6401:
{code}
curl --user admin:admin -H "X-Requested-By: ambari" -i -X PUT -d
'{"HostRoles":{"state":"STARTED"}}' http://`hostname
-f`:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components
{code}
*Response*
{code}
{
"status" : 400,
"message" : "java.lang.IllegalArgumentException: Invalid desired state for a
client component"
}
{code}
*Note:* There was no serviceComponent name specified but the API treats this
scenario as start request has been made on client component
Currently, you have to explicitly specify all the host components that you wish
to start. This is very cumbersome and not user friendly.
We also cannot do something like
/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components?HostRoles/is_client!=true
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)