本文讲解下如何通过 zookeeper.jar 操作Zookeeper. 并给出一个例子:例子通过zookeeper记录文件读取的偏移量,当程序重启后,从上一次的断点接着读取。 Maven dependency <!-- https://……