dnance / kafka-to-hdfs-service

simple microservice that subscribes to Kafka and publishes message from Kafka to HDFS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka-to-hdfs-service

Description

Service that listens on a given kafka topic and writes the value to hdfs as the given [hdfs_dir]+[hdfs_file]+ the kafka offset.

Example

./kafka2hdfs -brokers="localhost:9092" -offset="newest" -topic="hdfs_test" -hdfs-url="localhost:9000" -hdfs-dir="/tmp" -hdfs-file="output" -hdfs-user="vmware"

Output file:
/tmp/output.0
/tmp/output.1

About

simple microservice that subscribes to Kafka and publishes message from Kafka to HDFS.


Languages

Language:Go 89.2%Language:Makefile 9.1%Language:Batchfile 1.7%