Re: Resource manager error

2016-08-17 Thread John Yost
Okay, "*" or '*' works fine, which is slightly less horrible, so I can
update the myriad-config-default.yml accordingly to put quotes around * for
frameworkRole.

--John

On Wed, Aug 17, 2016 at 3:44 PM, John Yost  wrote:

> The * is causing error within the yaml parsing (see yaml special
> characters issues @http://bit.ly/2b507G3) I "fixed" this by setting
> frameworkRole  = /* and then updating MyriadConfiguration.getFrameworkRole()
> to strip off the /. Blech. We can do this or put in a constant like
> ANY_ROLE or something like that. Since this is a yaml thing, I guess it's
> okay to do /*. Again, just kinda yucky. Darin -> what do you think?
>
> --John
>
> On Wed, Aug 17, 2016 at 3:25 PM, Matthew J. Loppatto <
> mloppa...@keywcorp.com> wrote:
>
>> Ah that worked!  I'll let you know if I run into any more issues but it
>> looks like its good now.  Thanks for the help!
>>
>> Matt
>>
>> -Original Message-
>> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
>> Sent: Wednesday, August 17, 2016 3:18 PM
>> To: Dev
>> Subject: Re: Resource manager error
>>
>> Take a look at your myriad configuration under yarnEnvironment.  You can
>> set JAVA_HOME there, should solve the issue. See below.
>> yarnEnvironment:
>> YARN_HOME: /usr/local/hadoop
>> #HADOOP_CONF_DIR=config
>> #HADOOP_TMP_DIR=$MESOS_SANDBOX
>> #YARN_HOME: hadoop-2.7.0 #this should be relative if nodeManagerUri is set
>> #JAVA_HOME: /usr/lib/jvm/java-default #System dependent, but sometimes
>> necessary
>> #JAVA_HOME: jre1.7.0_76 # Path to JRE distribution, relative to sandbox
>> directory
>> #JAVA_LIBRARY_PATH: /opt/mycompany/lib
>>
>> On Wed, Aug 17, 2016 at 3:13 PM, Matthew J. Loppatto <
>> mloppa...@keywcorp.com
>> > wrote:
>>
>> > I'm running the resource manager as the root user.  Checking a few of
>> > my nodes, JAVA_HOME is set on all of them for the root env.  Am I ok
>> > to be using openjdk1.7 or do I have to use Oracle jdk?
>> >
>> > Matt
>> >
>> > -Original Message-
>> > From: John Yost [mailto:hokiege...@gmail.com]
>> > Sent: Wednesday, August 17, 2016 3:01 PM
>> > To: dev@myriad.incubator.apache.org
>> > Subject: Re: Resource manager error
>> >
>> > Progress is nice! What user are you running myriad as? root? yarn? If
>> > it is the former and you are running via sudo, I've seen this type of
>> error.
>> > If so, sudo to the root user and then launch. Otherwise, please type
>> > in env if you are on linux box and confirm you see JAVA_HOME for the
>> > user you are launching myriad as.
>> >
>> > --John
>> >
>> > On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto <
>> > mloppa...@keywcorp.com
>> > > wrote:
>> >
>> > > Hey John,
>> > >
>> > > I set up a role for myriad, restarted mesos-master, and now I'm
>> > > seeing RMs starting on the Mesos UI, but they fail with the message
>> > > "lost with exit
>> > > status: 256".  The executor log says "Error: JAVA_HOME is not set
>> > > and could not be found."  $JAVA_HOME is set on all my slaves as far
>> > > as I'm
>> > aware.
>> > > Running `java -version` confirms openjdk 1.7.0_111.  Looks like its
>> > > close to a working state.  Am I missing something?
>> > >
>> > > Thanks!
>> > > Matt
>> > >
>> > > -Original Message-
>> > > From: John Yost [mailto:hokiege...@gmail.com]
>> > > Sent: Wednesday, August 17, 2016 2:38 PM
>> > > To: dev@myriad.incubator.apache.org
>> > > Subject: Re: Resource manager error
>> > >
>> > > Please uncomment frameworkRole and then add the name of whatever
>> > > Mesos role you have configured that is not *. Note: at the risk of
>> > > telling you something you already know, you define roles in
>> > /etc/mesos-master/roles.
>> > >
>> > > In the meantime, I opened up a JIRA ticket and gonna fix this ASAP
>> > > starting now! :)
>> > >
>> > > --John
>> > >
>> > > On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto <
>> > > mloppa...@keywcorp.com
>> > > > wrote:
>> > >
>> > > > Hey Darin,
>> > > >
>> > > > Commenting out myriadFrameworkRole got rid of the log message
>> > > > about the missing role, but I'm still seeing the "n must be
>> positive"
>> > > exception.
>> > > >
>> > > > The only other thing of interest I see in the log is WARN fair.
>> > > AllocationFileLoaderService:
>> > > > fair-scheduler.xml not found on the classpath.  Not sure if that
>> > > > is causing any issue though.
>> > > >
>> > > > Matt
>> > > >
>> > > > -Original Message-
>> > > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
>> > > > Sent: Wednesday, August 17, 2016 1:26 PM
>> > > > To: Dev
>> > > > Subject: Re: Resource manager error
>> > > >
>> > > > Hey Matt,
>> > > >
>> > > > Looking through the code, I think setting myriadFrameworkRole to "*"
>> > > > might be the problem.  Can you try commenting out that line in
>> > > > your config?  I'll double check this in a little while too.  If
>> > > > that works I'll submit a patch that checks that.
>> > > >
>> > > > Sorry - Myriad is still a pretty young project!  Thanks for
>> > > > checking it ou

Re: Resource manager error

2016-08-17 Thread John Yost
The * is causing error within the yaml parsing (see yaml special characters
issues @http://bit.ly/2b507G3) I "fixed" this by setting frameworkRole  =
/* and then updating MyriadConfiguration.getFrameworkRole() to strip off
the /. Blech. We can do this or put in a constant like ANY_ROLE or
something like that. Since this is a yaml thing, I guess it's okay to do
/*. Again, just kinda yucky. Darin -> what do you think?

--John

On Wed, Aug 17, 2016 at 3:25 PM, Matthew J. Loppatto  wrote:

> Ah that worked!  I'll let you know if I run into any more issues but it
> looks like its good now.  Thanks for the help!
>
> Matt
>
> -Original Message-
> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> Sent: Wednesday, August 17, 2016 3:18 PM
> To: Dev
> Subject: Re: Resource manager error
>
> Take a look at your myriad configuration under yarnEnvironment.  You can
> set JAVA_HOME there, should solve the issue. See below.
> yarnEnvironment:
> YARN_HOME: /usr/local/hadoop
> #HADOOP_CONF_DIR=config
> #HADOOP_TMP_DIR=$MESOS_SANDBOX
> #YARN_HOME: hadoop-2.7.0 #this should be relative if nodeManagerUri is set
> #JAVA_HOME: /usr/lib/jvm/java-default #System dependent, but sometimes
> necessary
> #JAVA_HOME: jre1.7.0_76 # Path to JRE distribution, relative to sandbox
> directory
> #JAVA_LIBRARY_PATH: /opt/mycompany/lib
>
> On Wed, Aug 17, 2016 at 3:13 PM, Matthew J. Loppatto <
> mloppa...@keywcorp.com
> > wrote:
>
> > I'm running the resource manager as the root user.  Checking a few of
> > my nodes, JAVA_HOME is set on all of them for the root env.  Am I ok
> > to be using openjdk1.7 or do I have to use Oracle jdk?
> >
> > Matt
> >
> > -Original Message-
> > From: John Yost [mailto:hokiege...@gmail.com]
> > Sent: Wednesday, August 17, 2016 3:01 PM
> > To: dev@myriad.incubator.apache.org
> > Subject: Re: Resource manager error
> >
> > Progress is nice! What user are you running myriad as? root? yarn? If
> > it is the former and you are running via sudo, I've seen this type of
> error.
> > If so, sudo to the root user and then launch. Otherwise, please type
> > in env if you are on linux box and confirm you see JAVA_HOME for the
> > user you are launching myriad as.
> >
> > --John
> >
> > On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto <
> > mloppa...@keywcorp.com
> > > wrote:
> >
> > > Hey John,
> > >
> > > I set up a role for myriad, restarted mesos-master, and now I'm
> > > seeing RMs starting on the Mesos UI, but they fail with the message
> > > "lost with exit
> > > status: 256".  The executor log says "Error: JAVA_HOME is not set
> > > and could not be found."  $JAVA_HOME is set on all my slaves as far
> > > as I'm
> > aware.
> > > Running `java -version` confirms openjdk 1.7.0_111.  Looks like its
> > > close to a working state.  Am I missing something?
> > >
> > > Thanks!
> > > Matt
> > >
> > > -Original Message-
> > > From: John Yost [mailto:hokiege...@gmail.com]
> > > Sent: Wednesday, August 17, 2016 2:38 PM
> > > To: dev@myriad.incubator.apache.org
> > > Subject: Re: Resource manager error
> > >
> > > Please uncomment frameworkRole and then add the name of whatever
> > > Mesos role you have configured that is not *. Note: at the risk of
> > > telling you something you already know, you define roles in
> > /etc/mesos-master/roles.
> > >
> > > In the meantime, I opened up a JIRA ticket and gonna fix this ASAP
> > > starting now! :)
> > >
> > > --John
> > >
> > > On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto <
> > > mloppa...@keywcorp.com
> > > > wrote:
> > >
> > > > Hey Darin,
> > > >
> > > > Commenting out myriadFrameworkRole got rid of the log message
> > > > about the missing role, but I'm still seeing the "n must be positive"
> > > exception.
> > > >
> > > > The only other thing of interest I see in the log is WARN fair.
> > > AllocationFileLoaderService:
> > > > fair-scheduler.xml not found on the classpath.  Not sure if that
> > > > is causing any issue though.
> > > >
> > > > Matt
> > > >
> > > > -Original Message-
> > > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > > > Sent: Wednesday, August 17, 2016 1:26 PM
> > > > To: Dev
> > > > Subject: Re: Resource manager error
> > > >
> > > > Hey Matt,
> > > >
> > > > Looking through the code, I think setting myriadFrameworkRole to "*"
> > > > might be the problem.  Can you try commenting out that line in
> > > > your config?  I'll double check this in a little while too.  If
> > > > that works I'll submit a patch that checks that.
> > > >
> > > > Sorry - Myriad is still a pretty young project!  Thanks for
> > > > checking it out though!
> > > >
> > > > Darin
> > > >
> > > > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> > > > mloppa...@keywcorp.com> wrote:
> > > >
> > > > > Hey Darin,
> > > > >
> > > > > Pulling from master got rid of the errors I was seeing, however
> > > > > I'm running into a new issue.  After starting the resource
> > > > > manager, I see this in the logs:
> > > > >
> > > > > 

RE: Resource manager error

2016-08-17 Thread Matthew J. Loppatto
Ah that worked!  I'll let you know if I run into any more issues but it looks 
like its good now.  Thanks for the help!

Matt

-Original Message-
From: Darin Johnson [mailto:dbjohnson1...@gmail.com] 
Sent: Wednesday, August 17, 2016 3:18 PM
To: Dev
Subject: Re: Resource manager error

Take a look at your myriad configuration under yarnEnvironment.  You can set 
JAVA_HOME there, should solve the issue. See below.
yarnEnvironment:
YARN_HOME: /usr/local/hadoop
#HADOOP_CONF_DIR=config
#HADOOP_TMP_DIR=$MESOS_SANDBOX
#YARN_HOME: hadoop-2.7.0 #this should be relative if nodeManagerUri is set
#JAVA_HOME: /usr/lib/jvm/java-default #System dependent, but sometimes necessary
#JAVA_HOME: jre1.7.0_76 # Path to JRE distribution, relative to sandbox 
directory
#JAVA_LIBRARY_PATH: /opt/mycompany/lib

On Wed, Aug 17, 2016 at 3:13 PM, Matthew J. Loppatto  wrote:

> I'm running the resource manager as the root user.  Checking a few of 
> my nodes, JAVA_HOME is set on all of them for the root env.  Am I ok 
> to be using openjdk1.7 or do I have to use Oracle jdk?
>
> Matt
>
> -Original Message-
> From: John Yost [mailto:hokiege...@gmail.com]
> Sent: Wednesday, August 17, 2016 3:01 PM
> To: dev@myriad.incubator.apache.org
> Subject: Re: Resource manager error
>
> Progress is nice! What user are you running myriad as? root? yarn? If 
> it is the former and you are running via sudo, I've seen this type of error.
> If so, sudo to the root user and then launch. Otherwise, please type 
> in env if you are on linux box and confirm you see JAVA_HOME for the 
> user you are launching myriad as.
>
> --John
>
> On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto < 
> mloppa...@keywcorp.com
> > wrote:
>
> > Hey John,
> >
> > I set up a role for myriad, restarted mesos-master, and now I'm 
> > seeing RMs starting on the Mesos UI, but they fail with the message 
> > "lost with exit
> > status: 256".  The executor log says "Error: JAVA_HOME is not set 
> > and could not be found."  $JAVA_HOME is set on all my slaves as far 
> > as I'm
> aware.
> > Running `java -version` confirms openjdk 1.7.0_111.  Looks like its 
> > close to a working state.  Am I missing something?
> >
> > Thanks!
> > Matt
> >
> > -Original Message-
> > From: John Yost [mailto:hokiege...@gmail.com]
> > Sent: Wednesday, August 17, 2016 2:38 PM
> > To: dev@myriad.incubator.apache.org
> > Subject: Re: Resource manager error
> >
> > Please uncomment frameworkRole and then add the name of whatever 
> > Mesos role you have configured that is not *. Note: at the risk of 
> > telling you something you already know, you define roles in
> /etc/mesos-master/roles.
> >
> > In the meantime, I opened up a JIRA ticket and gonna fix this ASAP 
> > starting now! :)
> >
> > --John
> >
> > On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto < 
> > mloppa...@keywcorp.com
> > > wrote:
> >
> > > Hey Darin,
> > >
> > > Commenting out myriadFrameworkRole got rid of the log message 
> > > about the missing role, but I'm still seeing the "n must be positive"
> > exception.
> > >
> > > The only other thing of interest I see in the log is WARN fair.
> > AllocationFileLoaderService:
> > > fair-scheduler.xml not found on the classpath.  Not sure if that 
> > > is causing any issue though.
> > >
> > > Matt
> > >
> > > -Original Message-
> > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > > Sent: Wednesday, August 17, 2016 1:26 PM
> > > To: Dev
> > > Subject: Re: Resource manager error
> > >
> > > Hey Matt,
> > >
> > > Looking through the code, I think setting myriadFrameworkRole to "*"
> > > might be the problem.  Can you try commenting out that line in 
> > > your config?  I'll double check this in a little while too.  If 
> > > that works I'll submit a patch that checks that.
> > >
> > > Sorry - Myriad is still a pretty young project!  Thanks for 
> > > checking it out though!
> > >
> > > Darin
> > >
> > > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto < 
> > > mloppa...@keywcorp.com> wrote:
> > >
> > > > Hey Darin,
> > > >
> > > > Pulling from master got rid of the errors I was seeing, however 
> > > > I'm running into a new issue.  After starting the resource 
> > > > manager, I see this in the logs:
> > > >
> > > > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1
> > > > NM(s) with profile medium
> > > > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> > > MyriadOperations:
> > > > Adding 1 NM instances to cluster
> > > > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ErrorEventHandler:
> > > > Role '' is not present in the master's --roles
> > > >
> > > > My Mesos cluster has the default "*" role so I tried setting
> > > > frameworkRole: "*" in myriad-config-default.yml, restarted the 
> > > > resource manager and got this error:
> > > >
> > > > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ResourceOffersEventHandler:
> > > > Exception thrown while tr

Re: Resource manager error

2016-08-17 Thread John Yost
Odd, please send screen shot of executor startup.

--John

On Wed, Aug 17, 2016 at 3:13 PM, Matthew J. Loppatto  wrote:

> I'm running the resource manager as the root user.  Checking a few of my
> nodes, JAVA_HOME is set on all of them for the root env.  Am I ok to be
> using openjdk1.7 or do I have to use Oracle jdk?
>
> Matt
>
> -Original Message-
> From: John Yost [mailto:hokiege...@gmail.com]
> Sent: Wednesday, August 17, 2016 3:01 PM
> To: dev@myriad.incubator.apache.org
> Subject: Re: Resource manager error
>
> Progress is nice! What user are you running myriad as? root? yarn? If it
> is the former and you are running via sudo, I've seen this type of error.
> If so, sudo to the root user and then launch. Otherwise, please type in env
> if you are on linux box and confirm you see JAVA_HOME for the user you are
> launching myriad as.
>
> --John
>
> On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto <
> mloppa...@keywcorp.com
> > wrote:
>
> > Hey John,
> >
> > I set up a role for myriad, restarted mesos-master, and now I'm seeing
> > RMs starting on the Mesos UI, but they fail with the message "lost
> > with exit
> > status: 256".  The executor log says "Error: JAVA_HOME is not set and
> > could not be found."  $JAVA_HOME is set on all my slaves as far as I'm
> aware.
> > Running `java -version` confirms openjdk 1.7.0_111.  Looks like its
> > close to a working state.  Am I missing something?
> >
> > Thanks!
> > Matt
> >
> > -Original Message-
> > From: John Yost [mailto:hokiege...@gmail.com]
> > Sent: Wednesday, August 17, 2016 2:38 PM
> > To: dev@myriad.incubator.apache.org
> > Subject: Re: Resource manager error
> >
> > Please uncomment frameworkRole and then add the name of whatever Mesos
> > role you have configured that is not *. Note: at the risk of telling
> > you something you already know, you define roles in
> /etc/mesos-master/roles.
> >
> > In the meantime, I opened up a JIRA ticket and gonna fix this ASAP
> > starting now! :)
> >
> > --John
> >
> > On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto <
> > mloppa...@keywcorp.com
> > > wrote:
> >
> > > Hey Darin,
> > >
> > > Commenting out myriadFrameworkRole got rid of the log message about
> > > the missing role, but I'm still seeing the "n must be positive"
> > exception.
> > >
> > > The only other thing of interest I see in the log is WARN fair.
> > AllocationFileLoaderService:
> > > fair-scheduler.xml not found on the classpath.  Not sure if that is
> > > causing any issue though.
> > >
> > > Matt
> > >
> > > -Original Message-
> > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > > Sent: Wednesday, August 17, 2016 1:26 PM
> > > To: Dev
> > > Subject: Re: Resource manager error
> > >
> > > Hey Matt,
> > >
> > > Looking through the code, I think setting myriadFrameworkRole to "*"
> > > might be the problem.  Can you try commenting out that line in your
> > > config?  I'll double check this in a little while too.  If that
> > > works I'll submit a patch that checks that.
> > >
> > > Sorry - Myriad is still a pretty young project!  Thanks for checking
> > > it out though!
> > >
> > > Darin
> > >
> > > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> > > mloppa...@keywcorp.com> wrote:
> > >
> > > > Hey Darin,
> > > >
> > > > Pulling from master got rid of the errors I was seeing, however
> > > > I'm running into a new issue.  After starting the resource
> > > > manager, I see this in the logs:
> > > >
> > > > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1
> > > > NM(s) with profile medium
> > > > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> > > MyriadOperations:
> > > > Adding 1 NM instances to cluster
> > > > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ErrorEventHandler:
> > > > Role '' is not present in the master's --roles
> > > >
> > > > My Mesos cluster has the default "*" role so I tried setting
> > > > frameworkRole: "*" in myriad-config-default.yml, restarted the
> > > > resource manager and got this error:
> > > >
> > > > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ResourceOffersEventHandler:
> > > > Exception thrown while trying to create a task for nm
> > > > java.lang.IllegalArgumentException: n must be positive
> > > > at java.util.Random.nextInt(Random.java:300)
> > > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > > getRandomValues(RangeResource.java:128)
> > > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > > consumeResource(RangeResource.java:99)
> > > > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > > > consumePorts(ResourceOfferContainer.java:171)
> > > > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > > > NMTaskFactory.java:45)
> > > > at org.apache.myriad.scheduler.event.handlers.
> > > > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.
> > java:119)
> > > > at org.ap

Re: Resource manager error

2016-08-17 Thread Darin Johnson
Take a look at your myriad configuration under yarnEnvironment.  You can
set JAVA_HOME there, should solve the issue. See below.
yarnEnvironment:
YARN_HOME: /usr/local/hadoop
#HADOOP_CONF_DIR=config
#HADOOP_TMP_DIR=$MESOS_SANDBOX
#YARN_HOME: hadoop-2.7.0 #this should be relative if nodeManagerUri is set
#JAVA_HOME: /usr/lib/jvm/java-default #System dependent, but sometimes
necessary
#JAVA_HOME: jre1.7.0_76 # Path to JRE distribution, relative to sandbox
directory
#JAVA_LIBRARY_PATH: /opt/mycompany/lib

On Wed, Aug 17, 2016 at 3:13 PM, Matthew J. Loppatto  wrote:

> I'm running the resource manager as the root user.  Checking a few of my
> nodes, JAVA_HOME is set on all of them for the root env.  Am I ok to be
> using openjdk1.7 or do I have to use Oracle jdk?
>
> Matt
>
> -Original Message-
> From: John Yost [mailto:hokiege...@gmail.com]
> Sent: Wednesday, August 17, 2016 3:01 PM
> To: dev@myriad.incubator.apache.org
> Subject: Re: Resource manager error
>
> Progress is nice! What user are you running myriad as? root? yarn? If it
> is the former and you are running via sudo, I've seen this type of error.
> If so, sudo to the root user and then launch. Otherwise, please type in env
> if you are on linux box and confirm you see JAVA_HOME for the user you are
> launching myriad as.
>
> --John
>
> On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto <
> mloppa...@keywcorp.com
> > wrote:
>
> > Hey John,
> >
> > I set up a role for myriad, restarted mesos-master, and now I'm seeing
> > RMs starting on the Mesos UI, but they fail with the message "lost
> > with exit
> > status: 256".  The executor log says "Error: JAVA_HOME is not set and
> > could not be found."  $JAVA_HOME is set on all my slaves as far as I'm
> aware.
> > Running `java -version` confirms openjdk 1.7.0_111.  Looks like its
> > close to a working state.  Am I missing something?
> >
> > Thanks!
> > Matt
> >
> > -Original Message-
> > From: John Yost [mailto:hokiege...@gmail.com]
> > Sent: Wednesday, August 17, 2016 2:38 PM
> > To: dev@myriad.incubator.apache.org
> > Subject: Re: Resource manager error
> >
> > Please uncomment frameworkRole and then add the name of whatever Mesos
> > role you have configured that is not *. Note: at the risk of telling
> > you something you already know, you define roles in
> /etc/mesos-master/roles.
> >
> > In the meantime, I opened up a JIRA ticket and gonna fix this ASAP
> > starting now! :)
> >
> > --John
> >
> > On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto <
> > mloppa...@keywcorp.com
> > > wrote:
> >
> > > Hey Darin,
> > >
> > > Commenting out myriadFrameworkRole got rid of the log message about
> > > the missing role, but I'm still seeing the "n must be positive"
> > exception.
> > >
> > > The only other thing of interest I see in the log is WARN fair.
> > AllocationFileLoaderService:
> > > fair-scheduler.xml not found on the classpath.  Not sure if that is
> > > causing any issue though.
> > >
> > > Matt
> > >
> > > -Original Message-
> > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > > Sent: Wednesday, August 17, 2016 1:26 PM
> > > To: Dev
> > > Subject: Re: Resource manager error
> > >
> > > Hey Matt,
> > >
> > > Looking through the code, I think setting myriadFrameworkRole to "*"
> > > might be the problem.  Can you try commenting out that line in your
> > > config?  I'll double check this in a little while too.  If that
> > > works I'll submit a patch that checks that.
> > >
> > > Sorry - Myriad is still a pretty young project!  Thanks for checking
> > > it out though!
> > >
> > > Darin
> > >
> > > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> > > mloppa...@keywcorp.com> wrote:
> > >
> > > > Hey Darin,
> > > >
> > > > Pulling from master got rid of the errors I was seeing, however
> > > > I'm running into a new issue.  After starting the resource
> > > > manager, I see this in the logs:
> > > >
> > > > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1
> > > > NM(s) with profile medium
> > > > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> > > MyriadOperations:
> > > > Adding 1 NM instances to cluster
> > > > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ErrorEventHandler:
> > > > Role '' is not present in the master's --roles
> > > >
> > > > My Mesos cluster has the default "*" role so I tried setting
> > > > frameworkRole: "*" in myriad-config-default.yml, restarted the
> > > > resource manager and got this error:
> > > >
> > > > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> > > event.handlers.ResourceOffersEventHandler:
> > > > Exception thrown while trying to create a task for nm
> > > > java.lang.IllegalArgumentException: n must be positive
> > > > at java.util.Random.nextInt(Random.java:300)
> > > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > > getRandomValues(RangeResource.java:128)
> > > > at org.apache.myriad.scheduler.resource.RangeRes

RE: Resource manager error

2016-08-17 Thread Matthew J. Loppatto
I'm running the resource manager as the root user.  Checking a few of my nodes, 
JAVA_HOME is set on all of them for the root env.  Am I ok to be using 
openjdk1.7 or do I have to use Oracle jdk?

Matt

-Original Message-
From: John Yost [mailto:hokiege...@gmail.com] 
Sent: Wednesday, August 17, 2016 3:01 PM
To: dev@myriad.incubator.apache.org
Subject: Re: Resource manager error

Progress is nice! What user are you running myriad as? root? yarn? If it is the 
former and you are running via sudo, I've seen this type of error. If so, sudo 
to the root user and then launch. Otherwise, please type in env if you are on 
linux box and confirm you see JAVA_HOME for the user you are launching myriad 
as.

--John

On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto  wrote:

> Hey John,
>
> I set up a role for myriad, restarted mesos-master, and now I'm seeing 
> RMs starting on the Mesos UI, but they fail with the message "lost 
> with exit
> status: 256".  The executor log says "Error: JAVA_HOME is not set and 
> could not be found."  $JAVA_HOME is set on all my slaves as far as I'm aware.
> Running `java -version` confirms openjdk 1.7.0_111.  Looks like its 
> close to a working state.  Am I missing something?
>
> Thanks!
> Matt
>
> -Original Message-
> From: John Yost [mailto:hokiege...@gmail.com]
> Sent: Wednesday, August 17, 2016 2:38 PM
> To: dev@myriad.incubator.apache.org
> Subject: Re: Resource manager error
>
> Please uncomment frameworkRole and then add the name of whatever Mesos 
> role you have configured that is not *. Note: at the risk of telling 
> you something you already know, you define roles in /etc/mesos-master/roles.
>
> In the meantime, I opened up a JIRA ticket and gonna fix this ASAP 
> starting now! :)
>
> --John
>
> On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto < 
> mloppa...@keywcorp.com
> > wrote:
>
> > Hey Darin,
> >
> > Commenting out myriadFrameworkRole got rid of the log message about 
> > the missing role, but I'm still seeing the "n must be positive"
> exception.
> >
> > The only other thing of interest I see in the log is WARN fair.
> AllocationFileLoaderService:
> > fair-scheduler.xml not found on the classpath.  Not sure if that is 
> > causing any issue though.
> >
> > Matt
> >
> > -Original Message-
> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > Sent: Wednesday, August 17, 2016 1:26 PM
> > To: Dev
> > Subject: Re: Resource manager error
> >
> > Hey Matt,
> >
> > Looking through the code, I think setting myriadFrameworkRole to "*"
> > might be the problem.  Can you try commenting out that line in your 
> > config?  I'll double check this in a little while too.  If that 
> > works I'll submit a patch that checks that.
> >
> > Sorry - Myriad is still a pretty young project!  Thanks for checking 
> > it out though!
> >
> > Darin
> >
> > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto < 
> > mloppa...@keywcorp.com> wrote:
> >
> > > Hey Darin,
> > >
> > > Pulling from master got rid of the errors I was seeing, however 
> > > I'm running into a new issue.  After starting the resource 
> > > manager, I see this in the logs:
> > >
> > > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1
> > > NM(s) with profile medium
> > > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> > MyriadOperations:
> > > Adding 1 NM instances to cluster
> > > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> > event.handlers.ErrorEventHandler:
> > > Role '' is not present in the master's --roles
> > >
> > > My Mesos cluster has the default "*" role so I tried setting
> > > frameworkRole: "*" in myriad-config-default.yml, restarted the 
> > > resource manager and got this error:
> > >
> > > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> > event.handlers.ResourceOffersEventHandler:
> > > Exception thrown while trying to create a task for nm
> > > java.lang.IllegalArgumentException: n must be positive
> > > at java.util.Random.nextInt(Random.java:300)
> > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > getRandomValues(RangeResource.java:128)
> > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > consumeResource(RangeResource.java:99)
> > > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > > consumePorts(ResourceOfferContainer.java:171)
> > > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > > NMTaskFactory.java:45)
> > > at org.apache.myriad.scheduler.event.handlers.
> > > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.
> java:119)
> > > at org.apache.myriad.scheduler.event.handlers.
> > > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> > > at com.lmax.disruptor.BatchEventProcessor.run(
> > > BatchEventProcessor.java:128)
> > > at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > > ThreadPoolExecutor.java:1145)
> > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(

Re: Resource manager error

2016-08-17 Thread John Yost
Progress is nice! What user are you running myriad as? root? yarn? If it is
the former and you are running via sudo, I've seen this type of error. If
so, sudo to the root user and then launch. Otherwise, please type in env if
you are on linux box and confirm you see JAVA_HOME for the user you are
launching myriad as.

--John

On Wed, Aug 17, 2016 at 2:56 PM, Matthew J. Loppatto  wrote:

> Hey John,
>
> I set up a role for myriad, restarted mesos-master, and now I'm seeing RMs
> starting on the Mesos UI, but they fail with the message "lost with exit
> status: 256".  The executor log says "Error: JAVA_HOME is not set and could
> not be found."  $JAVA_HOME is set on all my slaves as far as I'm aware.
> Running `java -version` confirms openjdk 1.7.0_111.  Looks like its close
> to a working state.  Am I missing something?
>
> Thanks!
> Matt
>
> -Original Message-
> From: John Yost [mailto:hokiege...@gmail.com]
> Sent: Wednesday, August 17, 2016 2:38 PM
> To: dev@myriad.incubator.apache.org
> Subject: Re: Resource manager error
>
> Please uncomment frameworkRole and then add the name of whatever Mesos
> role you have configured that is not *. Note: at the risk of telling you
> something you already know, you define roles in /etc/mesos-master/roles.
>
> In the meantime, I opened up a JIRA ticket and gonna fix this ASAP
> starting now! :)
>
> --John
>
> On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto <
> mloppa...@keywcorp.com
> > wrote:
>
> > Hey Darin,
> >
> > Commenting out myriadFrameworkRole got rid of the log message about
> > the missing role, but I'm still seeing the "n must be positive"
> exception.
> >
> > The only other thing of interest I see in the log is WARN fair.
> AllocationFileLoaderService:
> > fair-scheduler.xml not found on the classpath.  Not sure if that is
> > causing any issue though.
> >
> > Matt
> >
> > -Original Message-
> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > Sent: Wednesday, August 17, 2016 1:26 PM
> > To: Dev
> > Subject: Re: Resource manager error
> >
> > Hey Matt,
> >
> > Looking through the code, I think setting myriadFrameworkRole to "*"
> > might be the problem.  Can you try commenting out that line in your
> > config?  I'll double check this in a little while too.  If that works
> > I'll submit a patch that checks that.
> >
> > Sorry - Myriad is still a pretty young project!  Thanks for checking
> > it out though!
> >
> > Darin
> >
> > On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> > mloppa...@keywcorp.com> wrote:
> >
> > > Hey Darin,
> > >
> > > Pulling from master got rid of the errors I was seeing, however I'm
> > > running into a new issue.  After starting the resource manager, I
> > > see this in the logs:
> > >
> > > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1
> > > NM(s) with profile medium
> > > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> > MyriadOperations:
> > > Adding 1 NM instances to cluster
> > > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> > event.handlers.ErrorEventHandler:
> > > Role '' is not present in the master's --roles
> > >
> > > My Mesos cluster has the default "*" role so I tried setting
> > > frameworkRole: "*" in myriad-config-default.yml, restarted the
> > > resource manager and got this error:
> > >
> > > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> > event.handlers.ResourceOffersEventHandler:
> > > Exception thrown while trying to create a task for nm
> > > java.lang.IllegalArgumentException: n must be positive
> > > at java.util.Random.nextInt(Random.java:300)
> > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > getRandomValues(RangeResource.java:128)
> > > at org.apache.myriad.scheduler.resource.RangeResource.
> > > consumeResource(RangeResource.java:99)
> > > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > > consumePorts(ResourceOfferContainer.java:171)
> > > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > > NMTaskFactory.java:45)
> > > at org.apache.myriad.scheduler.event.handlers.
> > > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.
> java:119)
> > > at org.apache.myriad.scheduler.event.handlers.
> > > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> > > at com.lmax.disruptor.BatchEventProcessor.run(
> > > BatchEventProcessor.java:128)
> > > at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > > ThreadPoolExecutor.java:1145)
> > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > > ThreadPoolExecutor.java:615)
> > > at java.lang.Thread.run(Thread.java:745)
> > >
> > > Does Myriad require its own role in Mesos?
> > >
> > > Thanks,
> > > Matt
> > >
> > >
> > > -Original Message-
> > > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > > Sent: Tuesday, August 16, 2016 6:18 PM
> > > To: Dev
> > > Subject: Re: Resource manager error
> > >
> > > Hey Mathew, my coworker f

RE: Resource manager error

2016-08-17 Thread Matthew J. Loppatto
Hey John,

I set up a role for myriad, restarted mesos-master, and now I'm seeing RMs 
starting on the Mesos UI, but they fail with the message "lost with exit 
status: 256".  The executor log says "Error: JAVA_HOME is not set and could not 
be found."  $JAVA_HOME is set on all my slaves as far as I'm aware.  Running 
`java -version` confirms openjdk 1.7.0_111.  Looks like its close to a working 
state.  Am I missing something?

Thanks!
Matt

-Original Message-
From: John Yost [mailto:hokiege...@gmail.com] 
Sent: Wednesday, August 17, 2016 2:38 PM
To: dev@myriad.incubator.apache.org
Subject: Re: Resource manager error

Please uncomment frameworkRole and then add the name of whatever Mesos role you 
have configured that is not *. Note: at the risk of telling you something you 
already know, you define roles in /etc/mesos-master/roles.

In the meantime, I opened up a JIRA ticket and gonna fix this ASAP starting 
now! :)

--John

On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto  wrote:

> Hey Darin,
>
> Commenting out myriadFrameworkRole got rid of the log message about 
> the missing role, but I'm still seeing the "n must be positive" exception.
>
> The only other thing of interest I see in the log is WARN 
> fair.AllocationFileLoaderService:
> fair-scheduler.xml not found on the classpath.  Not sure if that is 
> causing any issue though.
>
> Matt
>
> -Original Message-
> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> Sent: Wednesday, August 17, 2016 1:26 PM
> To: Dev
> Subject: Re: Resource manager error
>
> Hey Matt,
>
> Looking through the code, I think setting myriadFrameworkRole to "*" 
> might be the problem.  Can you try commenting out that line in your 
> config?  I'll double check this in a little while too.  If that works 
> I'll submit a patch that checks that.
>
> Sorry - Myriad is still a pretty young project!  Thanks for checking 
> it out though!
>
> Darin
>
> On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto < 
> mloppa...@keywcorp.com> wrote:
>
> > Hey Darin,
> >
> > Pulling from master got rid of the errors I was seeing, however I'm 
> > running into a new issue.  After starting the resource manager, I 
> > see this in the logs:
> >
> > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 
> > NM(s) with profile medium
> > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> MyriadOperations:
> > Adding 1 NM instances to cluster
> > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> event.handlers.ErrorEventHandler:
> > Role '' is not present in the master's --roles
> >
> > My Mesos cluster has the default "*" role so I tried setting
> > frameworkRole: "*" in myriad-config-default.yml, restarted the 
> > resource manager and got this error:
> >
> > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> event.handlers.ResourceOffersEventHandler:
> > Exception thrown while trying to create a task for nm
> > java.lang.IllegalArgumentException: n must be positive
> > at java.util.Random.nextInt(Random.java:300)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > getRandomValues(RangeResource.java:128)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > consumeResource(RangeResource.java:99)
> > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > consumePorts(ResourceOfferContainer.java:171)
> > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > NMTaskFactory.java:45)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> > at com.lmax.disruptor.BatchEventProcessor.run(
> > BatchEventProcessor.java:128)
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > ThreadPoolExecutor.java:1145)
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:745)
> >
> > Does Myriad require its own role in Mesos?
> >
> > Thanks,
> > Matt
> >
> >
> > -Original Message-
> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > Sent: Tuesday, August 16, 2016 6:18 PM
> > To: Dev
> > Subject: Re: Resource manager error
> >
> > Hey Mathew, my coworker found the same issue recently, I fixed it on 
> > my last pull request, if you'd like to pull from master.
> >
> > Alternatively, you could comment out the appendCgroups line in 
> > myriad-scheduler  > 3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
> > myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
> > HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
> > qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src 
> >  > wI 
> >

Re: Resource manager error

2016-08-17 Thread John Yost
Please uncomment frameworkRole and then add the name of whatever Mesos role
you have configured that is not *. Note: at the risk of telling you
something you already know, you define roles in /etc/mesos-master/roles.

In the meantime, I opened up a JIRA ticket and gonna fix this ASAP starting
now! :)

--John

On Wed, Aug 17, 2016 at 2:23 PM, Matthew J. Loppatto  wrote:

> Hey Darin,
>
> Commenting out myriadFrameworkRole got rid of the log message about the
> missing role, but I'm still seeing the "n must be positive" exception.
>
> The only other thing of interest I see in the log is WARN 
> fair.AllocationFileLoaderService:
> fair-scheduler.xml not found on the classpath.  Not sure if that is causing
> any issue though.
>
> Matt
>
> -Original Message-
> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> Sent: Wednesday, August 17, 2016 1:26 PM
> To: Dev
> Subject: Re: Resource manager error
>
> Hey Matt,
>
> Looking through the code, I think setting myriadFrameworkRole to "*" might
> be the problem.  Can you try commenting out that line in your config?  I'll
> double check this in a little while too.  If that works I'll submit a patch
> that checks that.
>
> Sorry - Myriad is still a pretty young project!  Thanks for checking it
> out though!
>
> Darin
>
> On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> mloppa...@keywcorp.com> wrote:
>
> > Hey Darin,
> >
> > Pulling from master got rid of the errors I was seeing, however I'm
> > running into a new issue.  After starting the resource manager, I see
> > this in the logs:
> >
> > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s)
> > with profile medium
> > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> MyriadOperations:
> > Adding 1 NM instances to cluster
> > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> event.handlers.ErrorEventHandler:
> > Role '' is not present in the master's --roles
> >
> > My Mesos cluster has the default "*" role so I tried setting
> > frameworkRole: "*" in myriad-config-default.yml, restarted the
> > resource manager and got this error:
> >
> > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> event.handlers.ResourceOffersEventHandler:
> > Exception thrown while trying to create a task for nm
> > java.lang.IllegalArgumentException: n must be positive
> > at java.util.Random.nextInt(Random.java:300)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > getRandomValues(RangeResource.java:128)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > consumeResource(RangeResource.java:99)
> > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > consumePorts(ResourceOfferContainer.java:171)
> > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > NMTaskFactory.java:45)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> > at com.lmax.disruptor.BatchEventProcessor.run(
> > BatchEventProcessor.java:128)
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > ThreadPoolExecutor.java:1145)
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:745)
> >
> > Does Myriad require its own role in Mesos?
> >
> > Thanks,
> > Matt
> >
> >
> > -Original Message-
> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > Sent: Tuesday, August 16, 2016 6:18 PM
> > To: Dev
> > Subject: Re: Resource manager error
> >
> > Hey Mathew, my coworker found the same issue recently, I fixed it on
> > my last pull request, if you'd like to pull from master.
> >
> > Alternatively, you could comment out the appendCgroups line in
> > myriad-scheduler  > 3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
> > myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
> > HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
> > qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src
> >  > FaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDn
> > Pt52V5PqDlabKIPtzNhAIfJCs&m=sX9u4FJdfE4P4b24cRwGMPuyeT4XkeQRP5t8wCZTjV
> > w&s=DeQq-jARIja9dGEYfjeIQMd6jGkf_tNUyvQn7PIMieU&e= .>
> > proofpoint.com/v2/url?u=https-3A__github.com_apache_
> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src&d=CwIFaQ&c=
> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> > 6CJWEHP2t7cY2oTmNz9Aq9AV39VEkUOKpMoRuz1q9nY&e= > /main <
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache
> > _
> > incubator-2Dmyriad_tree_0.2.

Re: Resource manager error

2016-08-17 Thread John Yost
JIRA ticket # 239

On Wed, Aug 17, 2016 at 2:21 PM, John Yost  wrote:

> Hi Guys,
>
> Sorry, just checked email, setting role to * does indeed cause this
> error.  Matt -> if you set it to nothing or whatever role you have your
> mesos slaves configured as, that will fix this. My apologies for failing to
> log and fix this. Darin -> I will enter a JIRA ticket for this.
>
> To echo Darin's sentiments--thanks a bunch for checking Myriad out! :)
>
> --John
>
> On Wed, Aug 17, 2016 at 1:25 PM, Darin Johnson 
> wrote:
>
>> Hey Matt,
>>
>> Looking through the code, I think setting myriadFrameworkRole to "*" might
>> be the problem.  Can you try commenting out that line in your config?
>> I'll
>> double check this in a little while too.  If that works I'll submit a
>> patch
>> that checks that.
>>
>> Sorry - Myriad is still a pretty young project!  Thanks for checking it
>> out
>> though!
>>
>> Darin
>>
>> On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
>> mloppa...@keywcorp.com> wrote:
>>
>> > Hey Darin,
>> >
>> > Pulling from master got rid of the errors I was seeing, however I'm
>> > running into a new issue.  After starting the resource manager, I see
>> this
>> > in the logs:
>> >
>> > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s)
>> > with profile medium
>> > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.My
>> riadOperations:
>> > Adding 1 NM instances to cluster
>> > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.ev
>> ent.handlers.ErrorEventHandler:
>> > Role '' is not present in the master's --roles
>> >
>> > My Mesos cluster has the default "*" role so I tried setting
>> > frameworkRole: "*" in myriad-config-default.yml, restarted the resource
>> > manager and got this error:
>> >
>> > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.ev
>> ent.handlers.ResourceOffersEventHandler:
>> > Exception thrown while trying to create a task for nm
>> > java.lang.IllegalArgumentException: n must be positive
>> > at java.util.Random.nextInt(Random.java:300)
>> > at org.apache.myriad.scheduler.resource.RangeResource.
>> > getRandomValues(RangeResource.java:128)
>> > at org.apache.myriad.scheduler.resource.RangeResource.
>> > consumeResource(RangeResource.java:99)
>> > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
>> > consumePorts(ResourceOfferContainer.java:171)
>> > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
>> > NMTaskFactory.java:45)
>> > at org.apache.myriad.scheduler.event.handlers.
>> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
>> > at org.apache.myriad.scheduler.event.handlers.
>> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
>> > at com.lmax.disruptor.BatchEventProcessor.run(
>> > BatchEventProcessor.java:128)
>> > at java.util.concurrent.ThreadPoolExecutor.runWorker(
>> > ThreadPoolExecutor.java:1145)
>> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>> > ThreadPoolExecutor.java:615)
>> > at java.lang.Thread.run(Thread.java:745)
>> >
>> > Does Myriad require its own role in Mesos?
>> >
>> > Thanks,
>> > Matt
>> >
>> >
>> > -Original Message-
>> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
>> > Sent: Tuesday, August 16, 2016 6:18 PM
>> > To: Dev
>> > Subject: Re: Resource manager error
>> >
>> > Hey Mathew, my coworker found the same issue recently, I fixed it on my
>> > last pull request, if you'd like to pull from master.
>> >
>> > Alternatively, you could comment out the appendCgroups line in
>> > myriad-scheduler > > 3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
>> > myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
>> > HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
>> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
>> > qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src > > proofpoint.com/v2/url?u=https-3A__github.com_apache_
>> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src&d=CwIFaQ&c=
>> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
>> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
>> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
>> > 6CJWEHP2t7cY2oTmNz9Aq9AV39VEkUOKpMoRuz1q9nY&e= > /main <
>> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
>> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main&d=CwIFaQ&c=
>> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
>> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
>> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
>> > BtYphvuvvNZ5owUTfiRd4hW90jq0Ib8GGtKiHU0fTB4&e= > /java <
>> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
>> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_ja
>> va&d=CwIFaQ&c=
>> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
>> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
>> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDT

[jira] [Created] (MYRIAD-239) Setting frameworkRole to * causes exception

2016-08-17 Thread John Yost (JIRA)
John Yost created MYRIAD-239:


 Summary: Setting frameworkRole to * causes exception
 Key: MYRIAD-239
 URL: https://issues.apache.org/jira/browse/MYRIAD-239
 Project: Myriad
  Issue Type: Bug
Reporter: John Yost


Setting the frameworkRole in myriad-config-default.yml causes the following 
exception to be thrown:

org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler: 
Exception thrown while trying to create a task for nm
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at 
org.apache.myriad.scheduler.resource.RangeResource.getRandomValues(RangeResource.java:128)
at 
org.apache.myriad.scheduler.resource.RangeResource.consumeResource(RangeResource.java:99)
at 
org.apache.myriad.scheduler.resource.ResourceOfferContainer.consumePorts(ResourceOfferContainer.java:171)
at 
org.apache.myriad.scheduler.NMTaskFactory.createTask(NMTaskFactory.java:45)
at 
org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
at 
org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


RE: Resource manager error

2016-08-17 Thread Matthew J. Loppatto
Hey Darin,

Commenting out myriadFrameworkRole got rid of the log message about the missing 
role, but I'm still seeing the "n must be positive" exception.

The only other thing of interest I see in the log is WARN 
fair.AllocationFileLoaderService: fair-scheduler.xml not found on the 
classpath.  Not sure if that is causing any issue though.

Matt

-Original Message-
From: Darin Johnson [mailto:dbjohnson1...@gmail.com] 
Sent: Wednesday, August 17, 2016 1:26 PM
To: Dev
Subject: Re: Resource manager error

Hey Matt,

Looking through the code, I think setting myriadFrameworkRole to "*" might be 
the problem.  Can you try commenting out that line in your config?  I'll double 
check this in a little while too.  If that works I'll submit a patch that 
checks that.

Sorry - Myriad is still a pretty young project!  Thanks for checking it out 
though!

Darin

On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto < mloppa...@keywcorp.com> 
wrote:

> Hey Darin,
>
> Pulling from master got rid of the errors I was seeing, however I'm 
> running into a new issue.  After starting the resource manager, I see 
> this in the logs:
>
> 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s) 
> with profile medium
> 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.MyriadOperations:
> Adding 1 NM instances to cluster
> 2016-08-17 10:56:40,733 ERROR 
> org.apache.myriad.scheduler.event.handlers.ErrorEventHandler:
> Role '' is not present in the master's --roles
>
> My Mesos cluster has the default "*" role so I tried setting
> frameworkRole: "*" in myriad-config-default.yml, restarted the 
> resource manager and got this error:
>
> 2016-08-17 11:06:28,244 ERROR 
> org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler:
> Exception thrown while trying to create a task for nm
> java.lang.IllegalArgumentException: n must be positive
> at java.util.Random.nextInt(Random.java:300)
> at org.apache.myriad.scheduler.resource.RangeResource.
> getRandomValues(RangeResource.java:128)
> at org.apache.myriad.scheduler.resource.RangeResource.
> consumeResource(RangeResource.java:99)
> at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> consumePorts(ResourceOfferContainer.java:171)
> at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> NMTaskFactory.java:45)
> at org.apache.myriad.scheduler.event.handlers.
> ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
> at org.apache.myriad.scheduler.event.handlers.
> ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> at com.lmax.disruptor.BatchEventProcessor.run(
> BatchEventProcessor.java:128)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> Does Myriad require its own role in Mesos?
>
> Thanks,
> Matt
>
>
> -Original Message-
> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> Sent: Tuesday, August 16, 2016 6:18 PM
> To: Dev
> Subject: Re: Resource manager error
>
> Hey Mathew, my coworker found the same issue recently, I fixed it on 
> my last pull request, if you'd like to pull from master.
>
> Alternatively, you could comment out the appendCgroups line in 
> myriad-scheduler  3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
> myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
> HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
> qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src 
>  FaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDn
> Pt52V5PqDlabKIPtzNhAIfJCs&m=sX9u4FJdfE4P4b24cRwGMPuyeT4XkeQRP5t8wCZTjV
> w&s=DeQq-jARIja9dGEYfjeIQMd6jGkf_tNUyvQn7PIMieU&e= .> 
> proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src&d=CwIFaQ&c=
> 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> 6CJWEHP2t7cY2oTmNz9Aq9AV39VEkUOKpMoRuz1q9nY&e= > /main < 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache
> _ 
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main&d=CwIFaQ&c=
> 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> BtYphvuvvNZ5owUTfiRd4hW90jq0Ib8GGtKiHU0fTB4&e= > /java < 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache
> _ 
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_java&d=CwIFa
> Q&c= 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5o45_
> 8zSN96r

Re: Resource manager error

2016-08-17 Thread John Yost
Hi Guys,

Sorry, just checked email, setting role to * does indeed cause this error.
Matt -> if you set it to nothing or whatever role you have your mesos
slaves configured as, that will fix this. My apologies for failing to log
and fix this. Darin -> I will enter a JIRA ticket for this.

To echo Darin's sentiments--thanks a bunch for checking Myriad out! :)

--John

On Wed, Aug 17, 2016 at 1:25 PM, Darin Johnson 
wrote:

> Hey Matt,
>
> Looking through the code, I think setting myriadFrameworkRole to "*" might
> be the problem.  Can you try commenting out that line in your config?  I'll
> double check this in a little while too.  If that works I'll submit a patch
> that checks that.
>
> Sorry - Myriad is still a pretty young project!  Thanks for checking it out
> though!
>
> Darin
>
> On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
> mloppa...@keywcorp.com> wrote:
>
> > Hey Darin,
> >
> > Pulling from master got rid of the errors I was seeing, however I'm
> > running into a new issue.  After starting the resource manager, I see
> this
> > in the logs:
> >
> > 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s)
> > with profile medium
> > 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.
> MyriadOperations:
> > Adding 1 NM instances to cluster
> > 2016-08-17 10:56:40,733 ERROR org.apache.myriad.scheduler.
> event.handlers.ErrorEventHandler:
> > Role '' is not present in the master's --roles
> >
> > My Mesos cluster has the default "*" role so I tried setting
> > frameworkRole: "*" in myriad-config-default.yml, restarted the resource
> > manager and got this error:
> >
> > 2016-08-17 11:06:28,244 ERROR org.apache.myriad.scheduler.
> event.handlers.ResourceOffersEventHandler:
> > Exception thrown while trying to create a task for nm
> > java.lang.IllegalArgumentException: n must be positive
> > at java.util.Random.nextInt(Random.java:300)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > getRandomValues(RangeResource.java:128)
> > at org.apache.myriad.scheduler.resource.RangeResource.
> > consumeResource(RangeResource.java:99)
> > at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> > consumePorts(ResourceOfferContainer.java:171)
> > at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> > NMTaskFactory.java:45)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
> > at org.apache.myriad.scheduler.event.handlers.
> > ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> > at com.lmax.disruptor.BatchEventProcessor.run(
> > BatchEventProcessor.java:128)
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > ThreadPoolExecutor.java:1145)
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:745)
> >
> > Does Myriad require its own role in Mesos?
> >
> > Thanks,
> > Matt
> >
> >
> > -Original Message-
> > From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> > Sent: Tuesday, August 16, 2016 6:18 PM
> > To: Dev
> > Subject: Re: Resource manager error
> >
> > Hey Mathew, my coworker found the same issue recently, I fixed it on my
> > last pull request, if you'd like to pull from master.
> >
> > Alternatively, you could comment out the appendCgroups line in
> > myriad-scheduler  > 3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
> > myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
> > HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
> > qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src  > proofpoint.com/v2/url?u=https-3A__github.com_apache_
> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src&d=CwIFaQ&c=
> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> > 6CJWEHP2t7cY2oTmNz9Aq9AV39VEkUOKpMoRuz1q9nY&e= > /main <
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main&d=CwIFaQ&c=
> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> > BtYphvuvvNZ5owUTfiRd4hW90jq0Ib8GGtKiHU0fTB4&e= > /java <
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_
> java&d=CwIFaQ&c=
> > 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> > D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> > ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5o45_
> > 8zSN96rSaQJ8oCWfhCvmqhSbLpz9fMnV9Fk4WI&e= > /org  > proofpoint.com/v2/url?u=https-3A__github.com_apache_
> > incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src

Re: Resource manager error

2016-08-17 Thread Darin Johnson
Hey Matt,

Looking through the code, I think setting myriadFrameworkRole to "*" might
be the problem.  Can you try commenting out that line in your config?  I'll
double check this in a little while too.  If that works I'll submit a patch
that checks that.

Sorry - Myriad is still a pretty young project!  Thanks for checking it out
though!

Darin

On Wed, Aug 17, 2016 at 11:25 AM, Matthew J. Loppatto <
mloppa...@keywcorp.com> wrote:

> Hey Darin,
>
> Pulling from master got rid of the errors I was seeing, however I'm
> running into a new issue.  After starting the resource manager, I see this
> in the logs:
>
> 2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s)
> with profile medium
> 2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.MyriadOperations:
> Adding 1 NM instances to cluster
> 2016-08-17 10:56:40,733 ERROR 
> org.apache.myriad.scheduler.event.handlers.ErrorEventHandler:
> Role '' is not present in the master's --roles
>
> My Mesos cluster has the default "*" role so I tried setting
> frameworkRole: "*" in myriad-config-default.yml, restarted the resource
> manager and got this error:
>
> 2016-08-17 11:06:28,244 ERROR 
> org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler:
> Exception thrown while trying to create a task for nm
> java.lang.IllegalArgumentException: n must be positive
> at java.util.Random.nextInt(Random.java:300)
> at org.apache.myriad.scheduler.resource.RangeResource.
> getRandomValues(RangeResource.java:128)
> at org.apache.myriad.scheduler.resource.RangeResource.
> consumeResource(RangeResource.java:99)
> at org.apache.myriad.scheduler.resource.ResourceOfferContainer.
> consumePorts(ResourceOfferContainer.java:171)
> at org.apache.myriad.scheduler.NMTaskFactory.createTask(
> NMTaskFactory.java:45)
> at org.apache.myriad.scheduler.event.handlers.
> ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
> at org.apache.myriad.scheduler.event.handlers.
> ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
> at com.lmax.disruptor.BatchEventProcessor.run(
> BatchEventProcessor.java:128)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> Does Myriad require its own role in Mesos?
>
> Thanks,
> Matt
>
>
> -Original Message-
> From: Darin Johnson [mailto:dbjohnson1...@gmail.com]
> Sent: Tuesday, August 16, 2016 6:18 PM
> To: Dev
> Subject: Re: Resource manager error
>
> Hey Mathew, my coworker found the same issue recently, I fixed it on my
> last pull request, if you'd like to pull from master.
>
> Alternatively, you could comment out the appendCgroups line in
> myriad-scheduler  3A__github.com_apache_incubator-2Dmyriad_tree_0.2.x_
> myriad-2Dscheduler&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsY
> HyolgGeY2ZhlU&r=D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5zc_OUK_
> qwnVQoC2kVCcAgvb4ZmZrVKF-iHca_dif4Y&e= >/src  proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src&d=CwIFaQ&c=
> 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> 6CJWEHP2t7cY2oTmNz9Aq9AV39VEkUOKpMoRuz1q9nY&e= > /main <
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main&d=CwIFaQ&c=
> 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> BtYphvuvvNZ5owUTfiRd4hW90jq0Ib8GGtKiHU0fTB4&e= > /java <
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_java&d=CwIFaQ&c=
> 31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=5o45_
> 8zSN96rSaQJ8oCWfhCvmqhSbLpz9fMnV9Fk4WI&e= > /org  proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_
> java_org&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=
> KUTlDXsl6Okj5nCNNyCqnHcE2ePwEEOsYkf2ASzQP2Y&e= > /apache <
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_
> incubator-2Dmyriad_tree_0.2.x_myriad-2Dscheduler_src_main_
> java_org_apache&d=CwIFaQ&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=
> D2bc6ANY3sIFSxaGDnPt52V5PqDlabKIPtzNhAIfJCs&m=
> ibxhOZQSsKtyVi5iruY8ImkW7bQ8zOrHcuDTLL7GBwA&s=465af32H1JItcea_
> tp5hz7zxwpqWgAqbVA8APaWmSUE&e= > /myriad 

RE: Resource manager error

2016-08-17 Thread Matthew J. Loppatto
Hey Darin,

Pulling from master got rid of the errors I was seeing, however I'm running 
into a new issue.  After starting the resource manager, I see this in the logs:

2016-08-17 10:56:40,709 INFO org.apache.myriad.Main: Launching 1 NM(s) with 
profile medium
2016-08-17 10:56:40,710 INFO org.apache.myriad.scheduler.MyriadOperations: 
Adding 1 NM instances to cluster
2016-08-17 10:56:40,733 ERROR 
org.apache.myriad.scheduler.event.handlers.ErrorEventHandler: Role '' is not 
present in the master's --roles

My Mesos cluster has the default "*" role so I tried setting frameworkRole: "*" 
in myriad-config-default.yml, restarted the resource manager and got this error:

2016-08-17 11:06:28,244 ERROR 
org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler: 
Exception thrown while trying to create a task for nm
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at 
org.apache.myriad.scheduler.resource.RangeResource.getRandomValues(RangeResource.java:128)
at 
org.apache.myriad.scheduler.resource.RangeResource.consumeResource(RangeResource.java:99)
at 
org.apache.myriad.scheduler.resource.ResourceOfferContainer.consumePorts(ResourceOfferContainer.java:171)
at 
org.apache.myriad.scheduler.NMTaskFactory.createTask(NMTaskFactory.java:45)
at 
org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
at 
org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Does Myriad require its own role in Mesos?

Thanks,
Matt


-Original Message-
From: Darin Johnson [mailto:dbjohnson1...@gmail.com] 
Sent: Tuesday, August 16, 2016 6:18 PM
To: Dev
Subject: Re: Resource manager error

Hey Mathew, my coworker found the same issue recently, I fixed it on my last 
pull request, if you'd like to pull from master.

Alternatively, you could comment out the appendCgroups line in myriad-scheduler 
/src 
 /main 
 /java 
 /org 
 /apache 
 /myriad 
 /scheduler