Skip to content

bit0rez/kafka-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-tools

Usage

Completion

  $ source <(kafka-tools completion)

Consumer

  $ kafka-tools consume -t Topic -f raw | while read line; \
    do \
      echo $line | protoc -I ~/path_to/proto_libs/ --decode=package.ProtoMessage ~/path_to/message.proto; \
      echo ;\
    done

Producer

  $ cat ~/proto_data | protoc -I ~/path_to/proto_libs/ --encode=package.ProtoMessage ~/path_to/message.proto | \ 
  kafka-tools produce -t Topic -H header=value -b 127.1.1.2:9092

About

Simple tools for Kafka written in Go

Resources

Stars

Watchers

Forks

Packages

No packages published