Serve the Apache Zookeeper API but back it with an etcd cluster
Go Shell
Latest commit 834c425 Mar 4, 2017 @heyitsanthony heyitsanthony committed on GitHub Merge pull request #26 from wrouesnel/naive_fix_watches
Fix path generation for sequential paths (fixes Mesos leader election)
Permalink
Failed to load latest commit information.
cmd zetcd: TLS support Feb 15, 2017
docker zetcd: initial coreos commit Oct 20, 2016
integration zetcd: implement zookeeper path validation algorithm for etcd adapter… Mar 4, 2017
scripts scripts: add mesos slave to mesos script Dec 2, 2016
vendor *: vendor 3.1.2 and fix CI Mar 1, 2017
xchk Merge pull request #18 from heyitsanthony/xchk-sort-children Jan 23, 2017
zk zetcd: initial coreos commit Oct 20, 2016
.travis.yml *: vendor 3.1.2 and fix CI Mar 1, 2017
CONTRIBUTING.md zetcd: initial coreos commit Oct 20, 2016
DCO zetcd: initial coreos commit Oct 20, 2016
LICENSE zetcd: initial coreos commit Oct 20, 2016
NOTICE zetcd: initial coreos commit Oct 20, 2016
Procfile zetcd: initial coreos commit Oct 20, 2016
README.md README: fix go-zookeeper link Nov 2, 2016
auth.go zetcd: initial coreos commit Oct 20, 2016
authconn.go zetcd: initial coreos commit Oct 20, 2016
bench_test.go zetcd: initial coreos commit Oct 20, 2016
client.go zetcd: initial coreos commit Oct 20, 2016
code-of-conduct.md zetcd: initial coreos commit Oct 20, 2016
conn.go zetcd: initial coreos commit Oct 20, 2016
constants.go zetcd: initial coreos commit Oct 20, 2016
encode.go zetcd: initial coreos commit Oct 20, 2016
glide.lock *: vendor 3.1.2 and fix CI Mar 1, 2017
glide.yaml *: vendor 3.1.2 and fix CI Mar 1, 2017
op.go zetcd: initial coreos commit Oct 20, 2016
path.go zetcd: implement zookeeper path validation algorithm for etcd adapter… Mar 4, 2017
pool.go zetcd: initial coreos commit Oct 20, 2016
server.go zetcd: initial coreos commit Oct 20, 2016
session.go zetcd: initial coreos commit Oct 20, 2016
stat.go zketcd: compute Pzxid correctly on no-children case Jan 23, 2017
structs.go zetcd: initial coreos commit Oct 20, 2016
watches.go zetcd: initial coreos commit Oct 20, 2016
zk.go zetcd: initial coreos commit Oct 20, 2016
zketcd.go zetcd: increment zxid on path validation failures Mar 4, 2017
zklog.go zetcd: initial coreos commit Oct 20, 2016

README.md

zetcd

Build Status

A ZooKeeper "personality" for etcd. Point a ZooKeeper client at zetcd to dispatch the operations on an etcd cluster.

Protocol encoding and decoding heavily based on go-zookeeper.

Usage

Forwarding zookeeper requests on :2181 to an etcd server listening on localhost:2379:

go install github.com/coreos/zetcd/cmd/zetcd
zetcd -zkaddr 0.0.0.0:2181 -endpoint localhost:2379

Cross-checking zookeeper emulation with a native zookeeper server on locahost:2182:

zetcd -zkaddr 0.0.0.0:2181  -endpoint localhost:2379 -zkbridge localhost:2182  -oracle zk -logtostderr -v 9

Simple testing with zkctl:

go install github.com/coreos/zetcd/cmd/zkctl
zkctl watch / &
zkctl put /abc "foo"