Skip to content

pehrs/kafkafs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafkafs - Kafka Producer FUSE File System

Copyright (c) 2014, Matti Pehrs

https://github.com/pehrs/kafkafs

kafkafs is a FUSE file system that produces events into Apache Kafka.

Usage

Requirements

The GNU toolchain
GNU make
librdkafka-dev
libfuse-dev

Building

make

Try KafkaFS

Start the KafkaFS:

> mkdir -p /mnt/kafkafs
> ./kafkafs -o debug -o brokers=localhost:9092 /mnt/kafkafs

Then use syslog to see the progress:

> tail -f /var/log/syslog

Witht the -o debug option the KafkaFS will print debug statements to syslog so you can follow the progress.

Now, lets send some messages to the topic 'sample':

> echo "First Message" > /mnt/kafkafs/topic/sample
> echo "Second Message" > /mnt/kafkafs/topic/sample

Whatever name is used after the /topic dirname will be used as the topic target.

To see some status of the KafkaFS just cat the kafka-status file in the root.

> cat /mnt/kafkafs/kafka-status
No msgs: 700293
Msgs/sec: 1002.73662

About

Kafka FUSE File system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages