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

asked 02 Feb, 11:21

ghousia's gravatar image

ghousia
1681117
accept rate: 0%


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?

link

answered 02 Feb, 11:29

yufeldman's gravatar image

yufeldman ♦
1.2k27
accept rate: 31%

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 02 Feb, 11:21

Seen: 233 times

Last updated: 02 Feb, 14:49

Related questions

powered by OSQA