isharamet / kafka-dirwatch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka-dirwatch

A Clojure library designed to watch directory for new files and sending their contents to Kafka.

Usage

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

License

Copyright © 2017 Ivan Sharamet

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

License:Eclipse Public License 1.0


Languages

Language:Clojure 100.0%