jhecking / as-to-kafka

Proof-of-concept app to stream data from an Aerospike cluster to Kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

as-to-kafka is a proof-of-concept app that continuously reads new data from an Aerospike cluster and publishes it to a Kafka topic. The records and keys are encoding using msgpack.

Prerequisites

Building the as-to-kafka application requires the following libraries:

The app uses query filters with predicate expressions which requires Aerospike Server v3.12 or later.

Usage

To start streaming record updates from Aerospike to Kafka, simply run the as-to-kafka application:

./as-to-kafka <broker> <topic> <hosts> <ns> <set>

The app takes the following command line arguments:

  • broker - comma-separated list of Kafka bootstrap brokers (host or host:port)
  • topic - Kafka topic to publish to
  • hosts - comma-separated list of Aerospike cluster nodes (host or host:port)
  • ns - Aerospike namespace to stream data from
  • set - Set name within the Aerospike namespace

consumer is a simple demo app that consumes a Kafka topic and prints the data out to the console as decoded msgpack object or hexdump.

Usage:

./consumer [-M] <topic>

About

Proof-of-concept app to stream data from an Aerospike cluster to Kafka

License:Apache License 2.0


Languages

Language:C 98.3%Language:Makefile 1.7%