You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Dan Dong <do...@gmail.com> on 2015/01/07 16:23:13 UTC

conf files location of mesos.

Hi,
  After installation of mesos on my cluster, where could I find the
location of configuration files?
E.g: mesos.conf, masters, slaves etc. I could not find any of them under
the prefix dir and subdirs (configure
--prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
files? Thanks!

Cheers,
Dan

Re: conf files location of mesos.

Posted by Nic Grayson <ni...@banno.com>.
Here are some good docs to get started with configuring mesos:
http://mesosphere.com/docs/reference/mesos-slave/

Nic

On Wed, Jan 7, 2015 at 9:23 AM, Dan Dong <do...@gmail.com> wrote:

> Hi,
>   After installation of mesos on my cluster, where could I find the
> location of configuration files?
> E.g: mesos.conf, masters, slaves etc. I could not find any of them under
> the prefix dir and subdirs (configure
> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
> files? Thanks!
>
> Cheers,
> Dan
>
>

Re: conf files location of mesos.

Posted by Adam Bordelon <ad...@mesosphere.io>.
Mesos-slave is often run as root, so it has permissions to create/modify
containers and setuid to run tasks as other users.
If you have authentication setup (mesos-master --authenticate) and ACLs
(mesos-master --acls), then you can set the run_tasks ACL to ensure only
authorized frameworks can run tasks as root on the slaves.
Mesos master doesn't need to be run as root, but it doesn't run any
userland code itself, so it's not risky to run it as root.

On Wed, Jan 7, 2015 at 9:22 PM, Srinimurthy <sr...@gmail.com> wrote:

> Is it a bad idea to install as root?
>
>
>
> On Jan 7, 2015, at 8:43 AM, Brian Devins <Br...@dealer.com> wrote:
>
>  Try ls /etc/default/mesos instead
>
>   From: Dan Dong <do...@gmail.com>
> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Date: Wednesday, January 7, 2015 at 11:38 AM
> To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Subject: Re: conf files location of mesos.
>
>    Hi, All,
>    Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not
> see any of the dirs of 'etc' or 'var' under my build directory(and any
> subdirs). What is the default conf files location for mesos 0.21.0?
>
> ls ~/mesos-0.21.0/build/
> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
> libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
>
>    Cheers,
>    Dan
>
> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>
>> Hi Dan,
>>
>>  this depends on your distribution. Mesosphere package comes with
>> wrapper script which uses configuration
>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>>
>>
>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>>
>>  which distribution do you use?
>>
>>  Tomas
>>
>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>
>>>   Hi,
>>>    After installation of mesos on my cluster, where could I find the
>>> location of configuration files?
>>>  E.g: mesos.conf, masters, slaves etc. I could not find any of them
>>> under the prefix dir and subdirs (configure
>>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>>> files? Thanks!
>>>
>>>  Cheers,
>>>  Dan
>>>
>>>
>>
>
>
> Brian Devins* |* Java Developer
> Brian.Devins@dealer.com
>
> [image: Dealer.com]
>
>

Re: conf files location of mesos.

Posted by Srinimurthy <sr...@gmail.com>.
Is it a bad idea to install as root?



> On Jan 7, 2015, at 8:43 AM, Brian Devins <Br...@dealer.com> wrote:
> 
> Try ls /etc/default/mesos instead
> 
> From: Dan Dong <do...@gmail.com>
> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Date: Wednesday, January 7, 2015 at 11:38 AM
> To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Subject: Re: conf files location of mesos.
> 
> Hi, All,
>   Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not see any of the dirs of 'etc' or 'var' under my build directory(and any subdirs). What is the default conf files location for mesos 0.21.0?
> 
> ls ~/mesos-0.21.0/build/
> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib  libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
> 
>   Cheers,
>   Dan
> 
> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>> Hi Dan,
>> 
>> this depends on your distribution. Mesosphere package comes with wrapper script which uses configuration
>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>> 
>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>> 
>> which distribution do you use?
>> 
>> Tomas
>> 
>>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>> Hi,
>>>   After installation of mesos on my cluster, where could I find the location of configuration files?
>>> E.g: mesos.conf, masters, slaves etc. I could not find any of them under the prefix dir and subdirs (configure --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf files? Thanks!
>>> 
>>> Cheers,
>>> Dan
> 
>  
> 
> Brian Devins | Java Developer
> brian.devins@dealer.com
> 
> 
> 

Re: conf files location of mesos.

Posted by Tomas Barton <ba...@gmail.com>.
Yeah, that's correct. make install won't create /etc/default/mesos. When
you compile
Mesos from source you have to write your init scripts and configuration
files
by yourself.

Mesos recognizes env variables like MESOS_ZK, etc., have a look at:

http://mesos.apache.org/documentation/latest/configuration/

or see:

mesos-slave --help
mesos-master --help





On 7 January 2015 at 17:53, Dan Dong <do...@gmail.com> wrote:

> Hi, Brian,
>   It's not there:
> ls /etc/default/mesos
> ls: cannot access /etc/default/mesos: No such file or directory
>
> I installed mesos from source tar ball by configure;make;make install as
> normal user.
>
> Cheers,
> Dan
>
>
> 2015-01-07 10:43 GMT-06:00 Brian Devins <Br...@dealer.com>:
>
>  Try ls /etc/default/mesos instead
>>
>>   From: Dan Dong <do...@gmail.com>
>> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
>> Date: Wednesday, January 7, 2015 at 11:38 AM
>> To: "user@mesos.apache.org" <us...@mesos.apache.org>
>> Subject: Re: conf files location of mesos.
>>
>>    Hi, All,
>>    Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not
>> see any of the dirs of 'etc' or 'var' under my build directory(and any
>> subdirs). What is the default conf files location for mesos 0.21.0?
>>
>> ls ~/mesos-0.21.0/build/
>> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
>> libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
>>
>>    Cheers,
>>    Dan
>>
>> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>>
>>> Hi Dan,
>>>
>>>  this depends on your distribution. Mesosphere package comes with
>>> wrapper script which uses configuration
>>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>>>
>>>
>>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>>>
>>>  which distribution do you use?
>>>
>>>  Tomas
>>>
>>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>>
>>>>   Hi,
>>>>    After installation of mesos on my cluster, where could I find the
>>>> location of configuration files?
>>>>  E.g: mesos.conf, masters, slaves etc. I could not find any of them
>>>> under the prefix dir and subdirs (configure
>>>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>>>> files? Thanks!
>>>>
>>>>  Cheers,
>>>>  Dan
>>>>
>>>>
>>>
>>
>>
>> Brian Devins* |* Java Developer
>> Brian.Devins@dealer.com
>>
>> [image: Dealer.com]
>>
>>
>

Re: conf files location of mesos.

Posted by Shuai Lin <li...@gmail.com>.
Yes, the mesos-master or mesos-slave binary itself only accepts command
line options, and do not read configs from places like /etc/mesos/ or
/etc/default/mesos.

If you compile from source, you either write a wrapper script to read these
configs/options, and pass them to mesos-master/mesos-slave like the
official deb package does, or pass the configs directly to mesos program in
command line.

On Thu, Jan 8, 2015 at 1:47 AM, Dick Davies <di...@hellooperator.net> wrote:

> Might be worth getting a packaged release for your OS, especially
> if you're new to this.
>
> On 7 January 2015 at 16:53, Dan Dong <do...@gmail.com> wrote:
>
>> Hi, Brian,
>>   It's not there:
>> ls /etc/default/mesos
>> ls: cannot access /etc/default/mesos: No such file or directory
>>
>> I installed mesos from source tar ball by configure;make;make install as
>> normal user.
>>
>> Cheers,
>> Dan
>>
>>
>> 2015-01-07 10:43 GMT-06:00 Brian Devins <Br...@dealer.com>:
>>
>>  Try ls /etc/default/mesos instead
>>>
>>>   From: Dan Dong <do...@gmail.com>
>>> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
>>> Date: Wednesday, January 7, 2015 at 11:38 AM
>>> To: "user@mesos.apache.org" <us...@mesos.apache.org>
>>> Subject: Re: conf files location of mesos.
>>>
>>>    Hi, All,
>>>    Thanks for your helps, I'm using version 0.21.0 of mesos. But I do
>>> not see any of the dirs of 'etc' or 'var' under my build directory(and any
>>> subdirs). What is the default conf files location for mesos 0.21.0?
>>>
>>> ls ~/mesos-0.21.0/build/
>>> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
>>> libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
>>>
>>>    Cheers,
>>>    Dan
>>>
>>> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>>>
>>>> Hi Dan,
>>>>
>>>>  this depends on your distribution. Mesosphere package comes with
>>>> wrapper script which uses configuration
>>>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>>>>
>>>>
>>>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>>>>
>>>>  which distribution do you use?
>>>>
>>>>  Tomas
>>>>
>>>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>>>
>>>>>   Hi,
>>>>>    After installation of mesos on my cluster, where could I find the
>>>>> location of configuration files?
>>>>>  E.g: mesos.conf, masters, slaves etc. I could not find any of them
>>>>> under the prefix dir and subdirs (configure
>>>>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>>>>> files? Thanks!
>>>>>
>>>>>  Cheers,
>>>>>  Dan
>>>>>
>>>>>
>>>>
>>>
>>>
>>> Brian Devins* |* Java Developer
>>> Brian.Devins@dealer.com
>>>
>>> [image: Dealer.com]
>>>
>>>
>>
>

Re: conf files location of mesos.

Posted by Dick Davies <di...@hellooperator.net>.
Might be worth getting a packaged release for your OS, especially
if you're new to this.

On 7 January 2015 at 16:53, Dan Dong <do...@gmail.com> wrote:

> Hi, Brian,
>   It's not there:
> ls /etc/default/mesos
> ls: cannot access /etc/default/mesos: No such file or directory
>
> I installed mesos from source tar ball by configure;make;make install as
> normal user.
>
> Cheers,
> Dan
>
>
> 2015-01-07 10:43 GMT-06:00 Brian Devins <Br...@dealer.com>:
>
>  Try ls /etc/default/mesos instead
>>
>>   From: Dan Dong <do...@gmail.com>
>> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
>> Date: Wednesday, January 7, 2015 at 11:38 AM
>> To: "user@mesos.apache.org" <us...@mesos.apache.org>
>> Subject: Re: conf files location of mesos.
>>
>>    Hi, All,
>>    Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not
>> see any of the dirs of 'etc' or 'var' under my build directory(and any
>> subdirs). What is the default conf files location for mesos 0.21.0?
>>
>> ls ~/mesos-0.21.0/build/
>> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
>> libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
>>
>>    Cheers,
>>    Dan
>>
>> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>>
>>> Hi Dan,
>>>
>>>  this depends on your distribution. Mesosphere package comes with
>>> wrapper script which uses configuration
>>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>>>
>>>
>>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>>>
>>>  which distribution do you use?
>>>
>>>  Tomas
>>>
>>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>>
>>>>   Hi,
>>>>    After installation of mesos on my cluster, where could I find the
>>>> location of configuration files?
>>>>  E.g: mesos.conf, masters, slaves etc. I could not find any of them
>>>> under the prefix dir and subdirs (configure
>>>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>>>> files? Thanks!
>>>>
>>>>  Cheers,
>>>>  Dan
>>>>
>>>>
>>>
>>
>>
>> Brian Devins* |* Java Developer
>> Brian.Devins@dealer.com
>>
>> [image: Dealer.com]
>>
>>
>

Re: conf files location of mesos.

Posted by Dan Dong <do...@gmail.com>.
Hi, Brian,
  It's not there:
ls /etc/default/mesos
ls: cannot access /etc/default/mesos: No such file or directory

I installed mesos from source tar ball by configure;make;make install as
normal user.

Cheers,
Dan


2015-01-07 10:43 GMT-06:00 Brian Devins <Br...@dealer.com>:

>  Try ls /etc/default/mesos instead
>
>   From: Dan Dong <do...@gmail.com>
> Reply-To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Date: Wednesday, January 7, 2015 at 11:38 AM
> To: "user@mesos.apache.org" <us...@mesos.apache.org>
> Subject: Re: conf files location of mesos.
>
>    Hi, All,
>    Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not
> see any of the dirs of 'etc' or 'var' under my build directory(and any
> subdirs). What is the default conf files location for mesos 0.21.0?
>
> ls ~/mesos-0.21.0/build/
> 3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
> libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src
>
>    Cheers,
>    Dan
>
> 2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:
>
>> Hi Dan,
>>
>>  this depends on your distribution. Mesosphere package comes with
>> wrapper script which uses configuration
>> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>>
>>
>> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>>
>>  which distribution do you use?
>>
>>  Tomas
>>
>> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>>
>>>   Hi,
>>>    After installation of mesos on my cluster, where could I find the
>>> location of configuration files?
>>>  E.g: mesos.conf, masters, slaves etc. I could not find any of them
>>> under the prefix dir and subdirs (configure
>>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>>> files? Thanks!
>>>
>>>  Cheers,
>>>  Dan
>>>
>>>
>>
>
>
> Brian Devins* |* Java Developer
> Brian.Devins@dealer.com
>
> [image: Dealer.com]
>
>

Re: conf files location of mesos.

Posted by Brian Devins <Br...@dealer.com>.
Try ls /etc/default/mesos instead

From: Dan Dong <do...@gmail.com>>
Reply-To: "user@mesos.apache.org<ma...@mesos.apache.org>" <us...@mesos.apache.org>>
Date: Wednesday, January 7, 2015 at 11:38 AM
To: "user@mesos.apache.org<ma...@mesos.apache.org>" <us...@mesos.apache.org>>
Subject: Re: conf files location of mesos.

Hi, All,
  Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not see any of the dirs of 'etc' or 'var' under my build directory(and any subdirs). What is the default conf files location for mesos 0.21.0?

ls ~/mesos-0.21.0/build/
3rdparty  bin  config.log  config.lt<http://config.lt>  config.status  ec2  include  lib  libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src

  Cheers,
  Dan

2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>>:
Hi Dan,

this depends on your distribution. Mesosphere package comes with wrapper script which uses configuration
placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave

https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper

which distribution do you use?

Tomas

On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com>> wrote:
Hi,
  After installation of mesos on my cluster, where could I find the location of configuration files?
E.g: mesos.conf, masters, slaves etc. I could not find any of them under the prefix dir and subdirs (configure --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf files? Thanks!

Cheers,
Dan






Brian Devins | Java Developer
Brian.Devins@dealer.com<ma...@dealer.com>

[Dealer.com]






Re: conf files location of mesos.

Posted by Dan Dong <do...@gmail.com>.
Hi, All,
  Thanks for your helps, I'm using version 0.21.0 of mesos. But I do not
see any of the dirs of 'etc' or 'var' under my build directory(and any
subdirs). What is the default conf files location for mesos 0.21.0?

ls ~/mesos-0.21.0/build/
3rdparty  bin  config.log  config.lt  config.status  ec2  include  lib
libexec  libtool  Makefile  mesos.pc  mpi  sbin  share  src

  Cheers,
  Dan

2015-01-07 9:47 GMT-06:00 Tomas Barton <ba...@gmail.com>:

> Hi Dan,
>
> this depends on your distribution. Mesosphere package comes with wrapper
> script which uses configuration
> placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave
>
>
> https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper
>
> which distribution do you use?
>
> Tomas
>
> On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:
>
>> Hi,
>>   After installation of mesos on my cluster, where could I find the
>> location of configuration files?
>> E.g: mesos.conf, masters, slaves etc. I could not find any of them under
>> the prefix dir and subdirs (configure
>> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
>> files? Thanks!
>>
>> Cheers,
>> Dan
>>
>>
>

Re: conf files location of mesos.

Posted by Tomas Barton <ba...@gmail.com>.
Hi Dan,

this depends on your distribution. Mesosphere package comes with wrapper
script which uses configuration
placed in /etc/default/mesos and /etc/mesos-master, /etc/mesos-slave

https://github.com/mesosphere/mesos-deb-packaging/blob/master/mesos-init-wrapper

which distribution do you use?

Tomas

On 7 January 2015 at 16:23, Dan Dong <do...@gmail.com> wrote:

> Hi,
>   After installation of mesos on my cluster, where could I find the
> location of configuration files?
> E.g: mesos.conf, masters, slaves etc. I could not find any of them under
> the prefix dir and subdirs (configure
> --prefix=/home/dan/mesos-0.21.0/build/). Are there examples for the conf
> files? Thanks!
>
> Cheers,
> Dan
>
>