You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Jim Freeman <ji...@sbcglobal.net> on 2014/01/15 02:18:56 UTC

run master and slave on same host (just for testing)?

I'm following Mesos README's "Running a Mesos Cluster" section.  Is  [prefix]/var/mesos/conf/mesos.conf used to config both the master and slave?  If so then I can't run master and slave on same host since the config would differ for master vs. slave.  BTW, I don't see this file installed, nor do I see a .template for it anywhere.


- Jim

Re: run master and slave on same host (just for testing)?

Posted by Tim St Clair <ts...@redhat.com>.
You can always pass the necessary variables via command line e.g.: 

mesos-master --log_dir=/var/log/mesos --port=5050 
mesos-slave --master=localhost:5050 --log_dir=/var/log/mesos --work_dir=/var/run/mesos 

Cheers, 
Tim 

----- Original Message -----

> From: "Jim Freeman" <ji...@sbcglobal.net>
> To: user@mesos.apache.org
> Sent: Thursday, January 16, 2014 12:26:30 PM
> Subject: Re: run master and slave on same host (just for testing)?

> Tim,
> Unfortunately my dev test environment is Ubuntu at the moment. How do you run
> the master and slave on the same host given they read the same mesos.conf
> file, where the content would differ depending on slave vs master?

> - Jim

> From: Tim St Clair <ts...@redhat.com>
> To: user@mesos.apache.org
> Sent: Wednesday, January 15, 2014 7:23 AM
> Subject: Re: run master and slave on same host (just for testing)?

> Jim -

> If you have a Fedora 19/20 machine and are willing to take some prototypes
> for a test drive.
> I have packaged .src.rpm available for rebuild:

> http://tstclair.fedorapeople.org/mesos/

> simply `rpmbuild -bb
> http://tstclair.fedorapeople.org/mesos/mesos-0.16.0-2.d0cb03f.fc21.src.rpm`

> It's configured to put the logs in standard locations and jig'd to work out
> of the gate.

> `systemctl start mesos-master mesos-slave`

> Cheers,
> Tim

> ----- Original Message -----

> From: "Jim Freeman" < jimfr@sbcglobal.net >
> To: user@mesos.apache.org
> Sent: Tuesday, January 14, 2014 7:18:56 PM
> Subject: run master and slave on same host (just for testing)?

> I'm following Mesos README's "Running a Mesos Cluster" section. Is
> [prefix]/var/mesos/conf/mesos.conf used to config both the master and slave?
> If so then I can't run master and slave on same host since the config would
> differ for master vs. slave. BTW, I don't see this file installed, nor do I
> see a .template for it anywhere.

> - Jim

> --
> Cheers,
> Tim

> --
> Cheers,
> Tim

-- 
Cheers, 
Tim 

Re: run master and slave on same host (just for testing)?

Posted by Jim Freeman <ji...@sbcglobal.net>.
Tim,
Unfortunately my dev test environment is Ubuntu at the moment.  How do you run the master and slave on the same host given they read the same mesos.conf file, where the content would differ depending on slave vs master?

- Jim


________________________________
 From: Tim St Clair <ts...@redhat.com>
To: user@mesos.apache.org 
Sent: Wednesday, January 15, 2014 7:23 AM
Subject: Re: run master and slave on same host (just for testing)?
 

Jim - 

If you have a Fedora 19/20 machine and are willing to take some prototypes for a test drive. 
I have packaged .src.rpm available for rebuild: 

http://tstclair.fedorapeople.org/mesos/ 

simply `rpmbuild -bb http://tstclair.fedorapeople.org/mesos/mesos-0.16.0-2.d0cb03f.fc21.src.rpm` 

It's configured to put the logs in standard locations and jig'd to work out of the gate. 

`systemctl start mesos-master mesos-slave`


Cheers, 
Tim 

----- Original Message ----- 


From: "Jim Freeman" <ji...@sbcglobal.net> 
To: user@mesos.apache.org 
Sent: Tuesday, January 14, 2014 7:18:56 PM 
Subject: run master and slave on same host (just for testing)? 

I'm following Mesos README's "Running a Mesos Cluster" section. Is [prefix]/var/mesos/conf/mesos.conf used to config both the master and slave? If so then I can't run master and slave on same host since the config would differ for master vs. slave. BTW, I don't see this file installed, nor do I see a .template for it anywhere. 

- Jim 






-- 
Cheers, 
Tim 

-- 
Cheers,
Tim

Re: run master and slave on same host (just for testing)?

Posted by Tim St Clair <ts...@redhat.com>.
Jim - 

If you have a Fedora 19/20 machine and are willing to take some prototypes for a test drive. 
I have packaged .src.rpm available for rebuild: 

http://tstclair.fedorapeople.org/mesos/ 

simply `rpmbuild -bb http://tstclair.fedorapeople.org/mesos/mesos-0.16.0-2.d0cb03f.fc21.src.rpm` 

It's configured to put the logs in standard locations and jig'd to work out of the gate. 

`systemctl start mesos-master mesos-slave`


Cheers, 
Tim 

----- Original Message ----- 


From: "Jim Freeman" <ji...@sbcglobal.net> 
To: user@mesos.apache.org 
Sent: Tuesday, January 14, 2014 7:18:56 PM 
Subject: run master and slave on same host (just for testing)? 

I'm following Mesos README's "Running a Mesos Cluster" section. Is [prefix]/var/mesos/conf/mesos.conf used to config both the master and slave? If so then I can't run master and slave on same host since the config would differ for master vs. slave. BTW, I don't see this file installed, nor do I see a .template for it anywhere. 

- Jim 






-- 
Cheers, 
Tim 

-- 
Cheers,
Tim

Re: run master and slave on same host (just for testing)?

Posted by Damien Hardy <dh...@viadeoteam.com>.
Hello Jim,

Actually configuration are mostly different between master and slave.
Only few of them are common and mostly addressing network or log
purposes that would be common on a single host.

BTW You can use envar for settings,
any config can be set using $MESOS_ prefix

ex :
export MESOS_ip=192.168.255.2
./bin/mesos-slave


For my need of debian packaging, I put init scripts that can inspire you
to run services
they use respectively /etc/default/mesos /etc/default/mesos-master
/etc/default/mesos-slave

https://github.com/viadeo/mesos/blob/feature/Debian/debian/mesos-master.init
https://github.com/viadeo/mesos/blob/feature/Debian/debian/mesos-slave.init

Cheers,

Le 15/01/2014 02:18, Jim Freeman a écrit :
> I'm following Mesos README's "Running a Mesos Cluster" section.  Is
>  [prefix]/var/mesos/conf/mesos.conf used to config both the master and
> slave?  If so then I can't run master and slave on same host since the
> config would differ for master vs. slave.  BTW, I don't see this file
> installed, nor do I see a .template for it anywhere.
> 
> - Jim

-- 
Damien HARDY