A Clojure library designed to watch directory for new files and sending their contents to Kafka.
Specify directory to watch, kafka broker URLs and topic in conf.edn
{:dir "/directory/to/watch"
:initial-load true
:kafka {:bootstrap.servers "host1:9092,host2:9092"
:topic "dirwatch-topic"}}
and run with Leiningen
lein run ./resources/conf.edn
or as a standalone JAR
java -jar kafka-dirwatch.jar ./conf.edn
Copyright © 2017 Ivan Sharamet
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.