mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Massenzio <ma...@mesosphere.io>
Subject Re: Mesos-master complains about quorum being a duplicate flag on CoreOS
Date Mon, 31 Aug 2015 18:09:14 GMT
Thanks for following up, glad we figured it out.

IMO the current behavior (and the error message) are non-intuitive and I've
filed a Jira[0] to address that.

[0] https://issues.apache.org/jira/browse/MESOS-3340

*Marco Massenzio*

*Distributed Systems Engineerhttp://codetrips.com <http://codetrips.com>*

On Mon, Aug 31, 2015 at 1:59 AM, F21 <f21.groups@gmail.com> wrote:

> Ah, that makes sense!
>
> I have the environment variable MESOS_QUORUM exported and it was
> conflicting with the --quorum passed to the command line.
>
> Removing the MESOS_QUORUM environment variable fixed it.
>
>
> On 31/08/2015 5:36 PM, Marco Massenzio wrote:
>
> Command line flags are parsed using stout/flags.hpp[0] and the FlagsBase
> class is derived in mesos::internal::master::Flags (see
> src/master/flags.hpp[1]).
>
> I am not sure why you are seeing that behavior on CoreOS, but I'd be
> curious to know what happens if you omit the --quorum when you start
> master: it should usually fail and complain that it's a required flag (when
> used in conjunction with --zk).  If it works, it will emit in the logs
> (towards the very beginning) all the values of the flags: what does it say
> about --quorum?
>
> Completely random question: I assume you don't already have in the
> environment a MESOS_QUORUM variable exported?
>
> If the issue persists in a "clean" OS install and a recent build, it's
> definitely a bug: it'd be great if you could please file a ticket at
> http://issues.apache.org/jira (feel free to assign to me).
>
> Thanks!
>
> [0]
> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=blob;f=3rdparty/libprocess/3rdparty/stout/include/stout/flags.hpp
> [1]
> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=blob;f=src/master/flags.hpp
>
> *Marco Massenzio*
>
> *Distributed Systems Engineer http://codetrips.com <http://codetrips.com>*
>
> On Sun, Aug 30, 2015 at 8:21 PM, F21 <f21.groups@gmail.com> wrote:
>
>> I've gotten the mesos binaries compiled and packaged and deployed them
>> onto a CoreOS instance.
>>
>>
>> When I run the master, it complains that the quorum flag is duplicated:
>>
>> $ ./mesos-master --zk=zk://192.168.1.4/mesos --quorum=1
>> --hostname=192.168.1.4 --ip=192.168.1.4
>> Duplicate flag 'quorum' on command line
>> ...
>>
>> However, if I try and run mesos-master on Ubuntu 15.04 64-bit (where the
>> binaries were built), it seems to work properly:
>>
>> $ ./mesos-master --zk=zk://192.168.1.4/mesos --quorum=1
>> --hostname=192.168.1.4 --ip=192.168.1.4
>>
>> I0830 18:31:20.983999 2830 main.cpp:181] Build: 2015-08-30 10:11:54 by
>> I0830 18:31:20.984246 2830 main.cpp:183] Version: 0.23.0
>> I0830 18:31:20.984694 2830 main.cpp:204] Using 'HierarchicalDRF'
>> allocator --work_dir needed for replicated log based registry
>>
>> How are the command line flags parsed in mesos? What causes this strange
>> behavior on CoreOS?
>>
>>
>>
>
>

Mime
View raw message