You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Rawat <ge...@gmail.com> on 2013/10/16 21:59:54 UTC

Newbie question

Hello there,

I have been browsing Mesos for last few days. I have a simple question. I
am running Mesos with Zookeeper. I am starting my Mesos server like this

 ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port

It looks like mesos start, but why does it say "Waiting to be master". It
should be master right away. Am i missing something ?

*I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03 by
root
I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
I1016 19:57:02.632817   383 master.cpp:284] Master started on
10.77.87.41:5050
I1016 19:57:02.632894   383 master.cpp:299] Master ID:
201310161957-693587210-5050-368
I1016 19:57:02.632916   383 master.cpp:309] Master allowing unauthenticated
frameworks to register!!
I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*

Also what is corresponding command to stop the master, i do not see any
stop script in my ./bin/ directory.

Re: Newbie question

Posted by Benjamin Hindman <be...@eecs.berkeley.edu>.
Hey Rawat,

It's a bit arcane but you need to specify the ZooKeeper string like: '
zk://server1:port;server2:port;server3:port/path/to/port'. For example:

mesos-master --zk=zk://host1:port1,host2:port2/path/to/mesos

Hope that helps.

Ben.


On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:

> Hello there,
>
> I have been browsing Mesos for last few days. I have a simple question. I
> am running Mesos with Zookeeper. I am starting my Mesos server like this
>
>  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
>
> It looks like mesos start, but why does it say "Waiting to be master". It
> should be master right away. Am i missing something ?
>
> *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03 by
> root
> I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
> I1016 19:57:02.632817   383 master.cpp:284] Master started on
> 10.77.87.41:5050
> I1016 19:57:02.632894   383 master.cpp:299] Master ID:
> 201310161957-693587210-5050-368
> I1016 19:57:02.632916   383 master.cpp:309] Master allowing unauthenticated
> frameworks to register!!
> I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
>
> Also what is corresponding command to stop the master, i do not see any
> stop script in my ./bin/ directory.
>

Re: Newbie question

Posted by Rawat <ge...@gmail.com>.
I guess i will just live with "> /dev/null 2>&1 &"  for now.




On Wed, Oct 16, 2013 at 1:34 PM, Rawat <ge...@gmail.com> wrote:

> I am using kill in the mean time, but it kind of makes it hard to automate
> little bit. Is there a script that launches the mesos as daemon ? I
> understand that i can easily write one, but would be nice if there is one
> that already exists :-)
>
>
>
>
> On Wed, Oct 16, 2013 at 1:22 PM, Benjamin Hindman <be...@eecs.berkeley.edu>wrote:
>
>> There isn't a corresponding stop command, you can just kill the process.
>> We
>> wanted to support running multiple masters and slaves on the same machine
>> (at least for development) which makes it hard to know which master to
>> "stop" if there was such a command. Plus, the operating system already
>> provides a great stop command via 'kill'. ;)
>>
>> Hope that helps!
>>
>>
>> On Wed, Oct 16, 2013 at 1:13 PM, Rawat <ge...@gmail.com> wrote:
>>
>> > Okay. Sorry for the type in my command. It got fixed when i used the
>> > correct command params
>> >
>> >
>> > ./bin/mesos-master.sh
>> > --zk=zk://server1:2181,server2:2181,server3:2181/mesos
>> >
>> > But i still wonder what would be a corresponding stop command
>> >
>> >
>> >
>> >
>> > On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:
>> >
>> > > Hello there,
>> > >
>> > > I have been browsing Mesos for last few days. I have a simple
>> question. I
>> > > am running Mesos with Zookeeper. I am starting my Mesos server like
>> this
>> > >
>> > >  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
>> > >
>> > > It looks like mesos start, but why does it say "Waiting to be
>> master". It
>> > > should be master right away. Am i missing something ?
>> > >
>> > > *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03
>> by
>> > > root
>> > > I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
>> > > I1016 19:57:02.632817   383 master.cpp:284] Master started on
>> > > 10.77.87.41:5050
>> > > I1016 19:57:02.632894   383 master.cpp:299] Master ID:
>> > > 201310161957-693587210-5050-368
>> > > I1016 19:57:02.632916   383 master.cpp:309] Master allowing
>> > > unauthenticated frameworks to register!!
>> > > I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
>> > >
>> > > Also what is corresponding command to stop the master, i do not see
>> any
>> > > stop script in my ./bin/ directory.
>> > >
>> > >
>> > >
>> >
>>
>
>

Re: Newbie question

Posted by Benjamin Hindman <be...@eecs.berkeley.edu>.
There are some "deploy" scripts in src/deploy (or build/src/deploy) that
might be helpful!


On Wed, Oct 16, 2013 at 1:34 PM, Rawat <ge...@gmail.com> wrote:

> I am using kill in the mean time, but it kind of makes it hard to automate
> little bit. Is there a script that launches the mesos as daemon ? I
> understand that i can easily write one, but would be nice if there is one
> that already exists :-)
>
>
>
>
> On Wed, Oct 16, 2013 at 1:22 PM, Benjamin Hindman <benh@eecs.berkeley.edu
> >wrote:
>
> > There isn't a corresponding stop command, you can just kill the process.
> We
> > wanted to support running multiple masters and slaves on the same machine
> > (at least for development) which makes it hard to know which master to
> > "stop" if there was such a command. Plus, the operating system already
> > provides a great stop command via 'kill'. ;)
> >
> > Hope that helps!
> >
> >
> > On Wed, Oct 16, 2013 at 1:13 PM, Rawat <ge...@gmail.com> wrote:
> >
> > > Okay. Sorry for the type in my command. It got fixed when i used the
> > > correct command params
> > >
> > >
> > > ./bin/mesos-master.sh
> > > --zk=zk://server1:2181,server2:2181,server3:2181/mesos
> > >
> > > But i still wonder what would be a corresponding stop command
> > >
> > >
> > >
> > >
> > > On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:
> > >
> > > > Hello there,
> > > >
> > > > I have been browsing Mesos for last few days. I have a simple
> > question. I
> > > > am running Mesos with Zookeeper. I am starting my Mesos server like
> > this
> > > >
> > > >  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
> > > >
> > > > It looks like mesos start, but why does it say "Waiting to be
> master".
> > It
> > > > should be master right away. Am i missing something ?
> > > >
> > > > *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03
> > by
> > > > root
> > > > I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
> > > > I1016 19:57:02.632817   383 master.cpp:284] Master started on
> > > > 10.77.87.41:5050
> > > > I1016 19:57:02.632894   383 master.cpp:299] Master ID:
> > > > 201310161957-693587210-5050-368
> > > > I1016 19:57:02.632916   383 master.cpp:309] Master allowing
> > > > unauthenticated frameworks to register!!
> > > > I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
> > > >
> > > > Also what is corresponding command to stop the master, i do not see
> any
> > > > stop script in my ./bin/ directory.
> > > >
> > > >
> > > >
> > >
> >
>

Re: Newbie question

Posted by Rawat <ge...@gmail.com>.
I am using kill in the mean time, but it kind of makes it hard to automate
little bit. Is there a script that launches the mesos as daemon ? I
understand that i can easily write one, but would be nice if there is one
that already exists :-)




On Wed, Oct 16, 2013 at 1:22 PM, Benjamin Hindman <be...@eecs.berkeley.edu>wrote:

> There isn't a corresponding stop command, you can just kill the process. We
> wanted to support running multiple masters and slaves on the same machine
> (at least for development) which makes it hard to know which master to
> "stop" if there was such a command. Plus, the operating system already
> provides a great stop command via 'kill'. ;)
>
> Hope that helps!
>
>
> On Wed, Oct 16, 2013 at 1:13 PM, Rawat <ge...@gmail.com> wrote:
>
> > Okay. Sorry for the type in my command. It got fixed when i used the
> > correct command params
> >
> >
> > ./bin/mesos-master.sh
> > --zk=zk://server1:2181,server2:2181,server3:2181/mesos
> >
> > But i still wonder what would be a corresponding stop command
> >
> >
> >
> >
> > On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:
> >
> > > Hello there,
> > >
> > > I have been browsing Mesos for last few days. I have a simple
> question. I
> > > am running Mesos with Zookeeper. I am starting my Mesos server like
> this
> > >
> > >  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
> > >
> > > It looks like mesos start, but why does it say "Waiting to be master".
> It
> > > should be master right away. Am i missing something ?
> > >
> > > *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03
> by
> > > root
> > > I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
> > > I1016 19:57:02.632817   383 master.cpp:284] Master started on
> > > 10.77.87.41:5050
> > > I1016 19:57:02.632894   383 master.cpp:299] Master ID:
> > > 201310161957-693587210-5050-368
> > > I1016 19:57:02.632916   383 master.cpp:309] Master allowing
> > > unauthenticated frameworks to register!!
> > > I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
> > >
> > > Also what is corresponding command to stop the master, i do not see any
> > > stop script in my ./bin/ directory.
> > >
> > >
> > >
> >
>

Re: Newbie question

Posted by Benjamin Hindman <be...@eecs.berkeley.edu>.
There isn't a corresponding stop command, you can just kill the process. We
wanted to support running multiple masters and slaves on the same machine
(at least for development) which makes it hard to know which master to
"stop" if there was such a command. Plus, the operating system already
provides a great stop command via 'kill'. ;)

Hope that helps!


On Wed, Oct 16, 2013 at 1:13 PM, Rawat <ge...@gmail.com> wrote:

> Okay. Sorry for the type in my command. It got fixed when i used the
> correct command params
>
>
> ./bin/mesos-master.sh
> --zk=zk://server1:2181,server2:2181,server3:2181/mesos
>
> But i still wonder what would be a corresponding stop command
>
>
>
>
> On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:
>
> > Hello there,
> >
> > I have been browsing Mesos for last few days. I have a simple question. I
> > am running Mesos with Zookeeper. I am starting my Mesos server like this
> >
> >  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
> >
> > It looks like mesos start, but why does it say "Waiting to be master". It
> > should be master right away. Am i missing something ?
> >
> > *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03 by
> > root
> > I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
> > I1016 19:57:02.632817   383 master.cpp:284] Master started on
> > 10.77.87.41:5050
> > I1016 19:57:02.632894   383 master.cpp:299] Master ID:
> > 201310161957-693587210-5050-368
> > I1016 19:57:02.632916   383 master.cpp:309] Master allowing
> > unauthenticated frameworks to register!!
> > I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
> >
> > Also what is corresponding command to stop the master, i do not see any
> > stop script in my ./bin/ directory.
> >
> >
> >
>

Re: Newbie question

Posted by Rawat <ge...@gmail.com>.
Okay. Sorry for the type in my command. It got fixed when i used the
correct command params


./bin/mesos-master.sh --zk=zk://server1:2181,server2:2181,server3:2181/mesos

But i still wonder what would be a corresponding stop command




On Wed, Oct 16, 2013 at 12:59 PM, Rawat <ge...@gmail.com> wrote:

> Hello there,
>
> I have been browsing Mesos for last few days. I have a simple question. I
> am running Mesos with Zookeeper. I am starting my Mesos server like this
>
>  ./bin/mesos-master.sh --zk=server1:port;server2:port;server3:port
>
> It looks like mesos start, but why does it say "Waiting to be master". It
> should be master right away. Am i missing something ?
>
> *I1016 19:57:02.632264   368 main.cpp:114] Build: 2013-10-15 23:43:03 by
> root
> I1016 19:57:02.632608   368 main.cpp:115] Starting Mesos master
> I1016 19:57:02.632817   383 master.cpp:284] Master started on
> 10.77.87.41:5050
> I1016 19:57:02.632894   383 master.cpp:299] Master ID:
> 201310161957-693587210-5050-368
> I1016 19:57:02.632916   383 master.cpp:309] Master allowing
> unauthenticated frameworks to register!!
> I1016 19:57:02.634641   383 master.cpp:695] Waiting to be master!*
>
> Also what is corresponding command to stop the master, i do not see any
> stop script in my ./bin/ directory.
>
>
>