You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Pascal Gillet <pa...@ymail.com> on 2018/05/05 10:37:39 UTC

Getting roles' info in Scheduler

Hi All,

Is it possible to get all the roles, specifically weighted roles, declared in the Mesos master from a SchedulerDriver in Java?

Thanks

Pascal GILLET

Re: Getting roles' info in Scheduler

Posted by Greg Mann <gr...@mesosphere.io>.
Hi Pascal,
This isn't possible directly with the SchedulerDriver, but your scheduler
could use the 'GET_ROLES' call of the operator API [1] for this purpose.

Cheers,
Greg

[1]
http://mesos.apache.org/documentation/latest/operator-http-api/#get_roles

On Sat, May 5, 2018 at 3:37 AM, Pascal Gillet <pa...@ymail.com>
wrote:

> Hi All,
>
> Is it possible to get all the roles, specifically weighted roles, declared
> in the Mesos master from a SchedulerDriver in Java?
>
> Thanks
>
> Pascal GILLET
>