try (CloseableIterator<Pair<String,String>> data =
new ConsumeData(UPDATE_TOPIC, zkPort).iterator();
BatchLayer<?,?,?> batchLayer = new BatchLayer<>(config)) {
log.info("Starting consumer thread");
new Thread(new LoggingRunnable() {
@Override
public void doRun() {
while (data.hasNext()) {
keyMessages.add(data.next());
}