ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Hill <greg.h...@RACKSPACE.COM>
Subject Stop all components API call no longer seems to work
Date Fri, 07 Nov 2014 13:55:45 GMT
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


Mime
View raw message