[
https://issues.apache.org/jira/browse/AMBARI-12547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642629#comment-14642629
]
Hudson commented on AMBARI-12547:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #3174 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/3174/])
AMBARI-12547. There is no easy way to start all host components on a host via
the API.(vbrodetskyi) (vbrodetskyi:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=01054f76df4fafc44cfb1b326e74f7d645a2788f)
*
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java
*
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java
> 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
>
> Attachments: AMBARI-12547.patch
>
>
> 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)