Mesos can connect to an existing ZK if you build with the included ZK code.
It simply means the client code we use is for the version we bundle.
Running a plain configure still allows you to connect to an existing ZK
cluster, you simply need to pass the appropriate --zk flag on the master,
and the appropriate --master flag on the slaves:
mesos-master --help
...
--zk=VAL ZooKeeper URL (used for leader election
amongst masters)
May be one of:
zk://host1:port1/path,host2:port2/path,...
zk://username:password@host1
:port1/path,host2:port2/path,...
file://path/to/file (where file contains
one of the above) (default: )
mesos-slave --help
...
--master=VAL May be one of:
zk://host1:port1/path,host2:port2/path,...
zk://username:password@host1
:port1/path,host2:port2/path,...
file://path/to/file (where
file contains one of the above)
Note that the existing help message doesn't quite match the one I included
here, as it currently has a bad ZK path example. We'll be fixing that
message soon.
That being said, you should be able to build with your own ZooKeeper
library, I just didn't have any quick hunches myself as to why this wasn't
working out for you.
On Wed, Apr 24, 2013 at 3:52 PM, ben ciceron <[email protected]> wrote:
> so another way around is how to build without the included ZK so that mesos
> would connect to an existing ZK ?
> dont we need to pass and include dir, a lib dir during configure/build OR
> do we only need to specify a host:port to mesos when we run it ?
>
> ~~~~~ ~~~ ~~ )><{{{^>
>
>
> On Mon, Apr 22, 2013 at 2:37 PM, ben ciceron <[email protected]> wrote:
>
> > i saw the zookeeper one here:
> > https://github.com/apache/mesos/blob/trunk/docs/Using-ZooKeeper.textile
> >
> > ~~~~~ ~~~ ~~ )><{{{^>
> >
> >
> > On Mon, Apr 22, 2013 at 1:58 PM, Benjamin Mahler <
> > [email protected]> wrote:
> >
> >> Where did you see --with-zookeeper and --with-webui?
> >> I don't see those in our configure.ac file.
> >>
> >>
> >> On Sat, Apr 20, 2013 at 6:54 PM, benoit ciceron <[email protected]
> >> >wrote:
> >>
> >> > hello,
> >> > after having been able to build mesos with all default and able to run
> >> it,
> >> > we wanted to rebuild but have it use our exisitng zookeeper since we
> >> > already have a separate one up (zookeeper 3.4.5 package for ubuntu
> >> 12.04),
> >> > so i tried to build mesos doing the following:
> >> > using the latest mesos from github git checkout 0.12.x
> >> > ./configure LDFLAGS='-L/usr/lib' LIBS='-lzookeeper_mt' CXXFLAGS='-I
> >> > /usr/include/zookeeper/' CPPFLAGS='-I /usr/include/zookeeper/'
> >> CFLAGS='-I
> >> > /usr/include/zookeeper/' --with-webui --without-included-zookeeper
> >> > --prefix=/home/install/mesos3 --with-zookeeper=/usr/share/zookeeper/
> >> > --with-curl --disable-perftools
> >> > but then still fails trying to build zookeeper:g++: error:
> >> > /home/mesos/third_party/zookeeper-3.3.4/src/c/.libs/libzookeeper_mt.a:
> >> No
> >> > such file or directorybut we already have that lib :+1: $ ls -l
> >> > /usr/lib/libzookeeper_mt.a-rwxr-xr-x 1 root root 645800 Nov 29 09:34
> >> > /usr/lib/libzookeeper_mt.a
> >> > anyone has integrated their existing zookeeper with mesos yet ?
> >> > thanks,ben-
> >> > [email protected]
> >> >
> >>
> >
> >
>