|
Hi, MapR service/list rest API, returns only four states. What is the status returned in case a configured service fails to start on any node. On the dashboard we see a ERROR, but how do we get this through API. Thanks, appreciate any help |
|
What exactly do you mean by "fails to start" - was it started, but failed to stay up or it did not start at all? Or you are interested in what "state" values mean? The service list rest API, returns one of the (NOT_CONFIGURED, RUNNING, STOPPED, STANDBY) state. How can one know if the service failed to start or it was stopped by user.
(02 Feb, 14:03)
ghousia
NOT_CONFIGURED (0), CONFIGURED (1), RUNNING (2), STOPPED (3), FAILED (4), STANDBY (5) So when user stopped service it will show STOPPED(3) If service keeps failing it will be an alarm and state will be FAILED (4)
(02 Feb, 14:46)
yufeldman ♦
Thanks, for the input.
(02 Feb, 14:49)
ghousia
|