Search code examples
ubuntuubuntu-14.04mesosmesosphere

Mesos master configuration error: Failed to load unknown flag


I'm running mesos 0.20 master node under Ubuntu 14.04. All configuration options I keep in /etc/default/mesos-master. I have a problem with MESOS_CREDENTIALS variable. It points to an existing and accessible file with a whitespace separated list of login/password pairs.

File /etc/default/mesos-master

MESOS_AUTHENTICATE=TRUE
MESOS_AUTHENTICATE_SLAVES=TRUE 
MESOS_CREDENTIALS=/etc/mesos-master/credentials.txt

File /etc/mesos-master/credentials.txt

login1 password1
login2 password2

I'm receiving an error on mesos-master start:

Failed to load unknown flag 'credentials.txt'

What am I doing wrong?


Solution

  • Mesos does not uses a consolidated configuration file. All configuration options you want to set you can set either through environment variables or by creating "option" files in Mesos config directory (/etc/mesos-master/ in my case).

    For example if you want to change --work_dir option you can do one of the below: * create a file /etc/mesos-master/work_dir containing some value * set environment variable MESOS_WORK_DIR.

    Any files in /etc/mesos-master/ named other than known Mesos options lead to the "unknown flag" error.

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