标签: zookeeper

如何从卡夫卡的旧偏移点获取数据?

我正在使用zookeeper从kafka获取数据.在这里,我总是从最后一个偏移点获取数据.有没有办法指定偏移时间来获取旧数据?

有一个选项autooffset.reset.它接受最小或最大.有人可以解释什么是最小和最大的.autooffset.reset可以帮助从旧的偏移点而不是最新的偏移点获取数据吗?

offset apache-kafka apache-zookeeper zookeeper

35
推荐指数
2
解决办法
4万
查看次数

ZooKeeper可靠性 - 三个节点与五个节点

来自ZooKeeper FAQ:

Reliability:

A single ZooKeeper server (standalone) is essentially a coordinator with
no reliability (a single serving node failure brings down the ZK service).

A 3 server ensemble (you need to jump to 3 and not 2 because ZK works
based on simple majority voting) allows for a single server to fail and
the service will still be available.

So if you want reliability go with at least 3. We typically recommend
having 5 servers in "online" …
Run Code Online (Sandbox Code Playgroud)

apache-zookeeper zookeeper

28
推荐指数
2
解决办法
2万
查看次数