Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (22 loc) · 1.31 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.31 KB

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>