An erlang application to copy messages from kafka 0.6 into a file