[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: Getting roles' info in Scheduler
From:       Greg Mann <greg () mesosphere ! io>
Date:       2018-05-10 17:27:34
Message-ID: CAMvp0pQjU5Z_YW=m+ThC4Cg4ZYo6zj_DjQ0adQ2VJb8U1eYbZw () mail ! gmail ! com
[Download RAW message or body]

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 <pascalgillet@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
>

[Attachment #3 (text/html)]

<div dir="ltr">Hi Pascal,<div>This isn&#39;t possible directly with the \
SchedulerDriver, but your scheduler could use the &#39;GET_ROLES&#39; call of the \
operator API [1] for this \
purpose.</div><div><br></div><div>Cheers,</div><div>Greg</div><div><br></div><div>[1] \
<a href="http://mesos.apache.org/documentation/latest/operator-http-api/#get_roles">ht \
tp://mesos.apache.org/documentation/latest/operator-http-api/#get_roles</a></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 3:37 AM, \
Pascal Gillet <span dir="ltr">&lt;<a href="mailto:pascalgillet@ymail.com" \
target="_blank">pascalgillet@ymail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div style="font-family:Helvetica \
Neue,Helvetica,Arial,sans-serif;font-size:13px"><div><span><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Hi \
All,</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Is it \
possible to get all the roles, specifically weighted roles, declared in the Mesos \
master from a SchedulerDriver in Java?</span><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Thanks</span></span><span \
class="HOEnZb"><font color="#888888"><br></font></span></div><span \
class="HOEnZb"><font color="#888888"><div><span><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br></span></span></div><div><span><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Pascal \
GILLET</span></span></div></font></span></div></div></blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic