the following API example , will stop the kafka service in ambari
export service=kafka curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo":{"context":"_PARSE_.STOP.$service","operation_level":{"level":"SERVICE","cluster_name":"$CLUSTER_NAME","service_name":"$service"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://$HOST:8080/api/v1/clusters/$CLUSTER_NAME/services/$service
the problem is about the syntax - _PARSE_.STOP.$service
and we see that actually service value - kafka not set in - PARSE.STOP.$service
so ambri saw the name as - PARSE.STOP.$service and not PARSE.STOP.kafka
any idea how we can set the value kafka inside the json syntax?