my version is 0.14.0. I have changed "roles.contains()" into "roleInfos.contains()" at line 311 in master.cpp, and it works.
Thank you ! > -----原始邮件----- > 发件人: "Vinod Kone" <[email protected]> > 发送时间: 2014年3月1日 星期六 > 收件人: dev <[email protected]> > 抄送: > 主题: Re: Problem with set Weights when starting the Mesos Master > > On Fri, Feb 28, 2014 at 7:32 AM, HUO Jing <[email protected]> wrote: > > > mesos-master --roles=role1 --weights='role1=2' > > > > I'm unable to reproduce this? Are you sure that is the comand line you > used? What version of mesos are you running? > > ➜ build git:(vinod/0.18.0) ✗ ./bin/mesos-master.sh --roles=role1 > --weights='role1=2' > I0228 16:08:27.152384 2052628864 main.cpp:130] Build: 2014-02-26 21:20:55 > by vinod > I0228 16:08:27.152608 2052628864 main.cpp:132] Version: 0.19.0 > I0228 16:08:27.152619 2052628864 main.cpp:139] Git SHA: > a22fd35160f96fcd2b2c73f40111314d00f285e2 > I0228 16:08:27.153298 2052628864 main.cpp:182] Starting Mesos master > I0228 16:08:27.153862 2052628864 master.cpp:252] Master ID: > 2014-02-28-16:08:27-1629165996-5050-95193 Hostname: **** > I0228 16:08:27.154003 85266432 master.cpp:262] Master started on ****:5050 > I0228 16:08:27.154023 85266432 master.cpp:272] Master allowing > unauthenticated frameworks to register!! > I0228 16:08:27.157982 85266432 master.cpp:770] The newly elected leader is > master@****:5050 with id 2014-02-28-16:08:27-1629165996-5050-95193 > I0228 16:08:27.158011 85266432 master.cpp:780] Elected as the leading > master!
