Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.29 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.29 KB

kafka-rocksdb

Creates a RocksDB database from Kafka topics.

Overview

kafka-rocksdb will consume one or more Kafka topics and update a local RocksDB from the events. It will create Column-Families for each topic with the same name. The message's key will be used as key in RocksDB. Messages without key will be ignored. The message's value will be used as value in RocksDB. An empty (null) value will delete the record in RocksDB. The RocksDB database can then be used as a Secondary instance by any other application.

Installation

cargo install --git https://github.com/mkroli/kafka-rocksdb.git

Configuration

topics = ["test"]

[kafka]
"group.id" = "kafka_rocksdb"
"bootstrap.servers" = "localhost:9092"

[rocksdb]
"directory" = "./db"

[prometheus]
"address" = "0.0.0.0:9184"

Usage

% target/release/kafka-rocksdb --help
kafka-rocksdb 0.2.0
Michael Krolikowski <mkroli@yahoo.de>


USAGE:
    kafka-rocksdb [FLAGS] <configuration file>

ARGS:
    <configuration file>
            Configuration file to use

FLAGS:
    -h, --help
            Prints help information

    -l, --log-to-stdout
            

    -V, --version
            Prints version information