ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Sen <d...@hortonworks.com>
Subject Re: Stop all components API call no longer seems to work
Date Fri, 07 Nov 2014 14:22:42 GMT
Hi, Greg!

I think you should specify operation level in the body, like


   1. {"RequestInfo":{"context":"Stop
   Services","operation_level":{"level":"CLUSTER","cluster_name":"testcluster"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}:


BR,
Dmytro

On Fri, Nov 7, 2014 at 3:55 PM, Greg Hill <greg.hill@rackspace.com> wrote:

>  This used to work in earlier 1.7.0 builds, but doesn't seem to any
> longer:
>
>  PUT /api/v1/clusters/testcluster/hosts/
> c6404.ambari.apache.org/host_components
>  {"RequestInfo": {"context": "Stop All Components"}, "Body": {"HostRoles":
> {"state": "INSTALLED"}}}
>
>  Seeing this in the server logs:
> 13:05:42,082  WARN [qtp1842914725-24] AmbariManagementControllerImpl:2149
> - Can not determine request operation level. Operation level property
> should be specified for this request.
>  13:05:42,082  INFO [qtp1842914725-24]
> AmbariManagementControllerImpl:2162 - Received a updateHostComponent
> request, clusterName=testcluster, serviceName=HDFS, componentName=DATANODE,
> hostname=c6404.ambari.apache.org, request={ clusterName=testcluster,
> serviceName=HDFS, componentName=DATANODE, hostname=c6404.ambari.apache.org,
> desiredState=INSTALLED, desiredStackId=null, staleConfig=null,
> adminState=null}
> 13:05:42,083  INFO [qtp1842914725-24] AmbariManagementControllerImpl:2162
> - Received a updateHostComponent request, clusterName=testcluster,
> serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=
> c6404.ambari.apache.org, request={ clusterName=testcluster,
> serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=
> c6404.ambari.apache.org, desiredState=INSTALLED, desiredStackId=null,
> staleConfig=null, adminState=null}
> 13:05:42,083  INFO [qtp1842914725-24] AmbariManagementControllerImpl:2162
> - Received a updateHostComponent request, clusterName=testcluster,
> serviceName=YARN, componentName=NODEMANAGER, hostname=
> c6404.ambari.apache.org, request={ clusterName=testcluster,
> serviceName=YARN, componentName=NODEMANAGER, hostname=
> c6404.ambari.apache.org, desiredState=INSTALLED, desiredStackId=null,
> staleConfig=null, adminState=null}
>
>  But I get an empty response with status 200 and no request was created.
> Shouldn't that be an error if it can't act on my request?
>
>  Are there some docs about how to formulate the 'operation level' part of
> the request?
>
>  Greg
>
>


-- 
BR,
Dmitry Sen

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
View raw message