clj-kafka.zk

broker-list

(broker-list brokers)

Returns a comma separated list of Kafka brokers, as returned from clj-kafka.zk/brokers. e.g.: (broker-list (brokers {“zookeeper.connect” “127.0.0.1:2181”}))

brokers

(brokers m)

Get brokers from zookeeper

committed-offset

(committed-offset m consumer-group topic partition)

controller

(controller m)

Get leader node

offset-path

(offset-path consumer-group topic partition)

partitions

(partitions m topic)

Returns a map of partitions and replica ids. e.g. {“1” [0], “0” [0]}

set-offset!

(set-offset! m consumer-group topic partition offset)

topics

(topics m)

Get topics