GridGain Documentation

The GridGain Developer Hub

Welcome to the GridGain developer hub. You'll find comprehensive guides and documentation to help you start working with GridGain as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Kafka Connector Quick Start

Kafka Connect Ecosystem

There are different types of nodes in a distributed Kafka Connect ecosystem. This Kafka documentation uses the following terminology to refer to specific type of a cluster node:

  • Kafka cluster nodes are called Kafka Brokers
  • Kafka Connect cluster nodes are called Kafka Connect Workers
  • GridGain cluster nodes are called GridGain Servers

GridGain Kafka Connector Installation

Kafka Connector installation consists of 3 steps:

  1. Prepare Connector Package
  2. Register Connector with Kafka
  3. Optional: register Connector with GridGain

1. Prepare Connector Package

Kafka Connector is part of GridGain Enterprise or GridGain Ultimate version 8.4.9 or later. The connector is located in the integration/gridgain-kafka-connect directory in the GridGain installation directory.
Pull missing connector dependencies into the package:

cd $GRIDGAIN_HOME/integration/gridgain-kafka-connect

2. Register GridGain Connector with Kafka

For every Kafka Connect Worker:

  1. Copy connector package directory to where you want Kafka Connectors to be located.
  2. Edit Kafka Connect Worker configuration ($KAFKA_HOME/config/ for single-worker Kafka Connect cluster or $KAFKA_HOME/config/ for multiple node Kafka Connect cluster) to register the connector on the plugin path (replace CONNECTORS_PATH with directory where you copied the connector package):

3. Register GridGain Connector with GridGain

This is optional

This step is needed only if you use BACKLOG as a Failover Policy.

On every GridGain server node copy the below JARs into $GRIDGAIN_HOME/libs/user directory:

  • gridgain-kafka-connect-8.4.9.jar (located on GridGain nodes in the $GRIDGAIN_HOME/integration/gridgain-kafka-connect/lib directory)
  • connect-api-2.0.0.jar and kafka-clients-2.0.0.jar (located on Kafka Connect workers in the $KAFKA_HOME/libs directory)

GridGain Kafka Connector Configuration

The only GridGain Source connector mandatory properties are the connector's name, class and path to Ignite configuration describing how to connect to the source GridGain cluster. Minimal source connector configuration with a name "gridgain-kafka-connect-source" might look like:


See Source Connector Configuration for full properties list.

The only GridGain Sink connector mandatory properties are the connector's name, class, list of topics to stream data from and a path to Ignite configuration describing how to connect to the sink GridGain cluster. Minimal source connector configuration with a name "gridgain-kafka-connect-sink" might look like:


See Sink Connector Configuration for full properties list.

Running Kafka Connect Ecosystem

See Installing and Configuring Kafka Connect
for detailed documentation. As a summary, you need to:

  1. Configure and Install Kafka Connectors
  2. Configure and start Zookeeper
  3. Configure and start Kafka brokers
  4. Configure and start Kafka Connect workers

We already reviewed how to configure and install Kafka connectors. Below are shell commands to run Kafka Connect ecosystem on the same host using default zookeeper, broker and connect worker configuration files (normally you would run each node on a separate host):

$KAFKA_HOME/bin/ $KAFKA_HOME/config/
$KAFKA_HOME/bin/ $KAFKA_HOME/config/
$KAFKA_HOME/bin/ \
	$KAFKA_HOME/config/ \ \

Managing Kafka Connectors

Each Kafka worker exposes REST API to manage Kafka Connectors (available on port 8083 by default). See Kafka Connect REST Interface for how to create, remove, pause and resume connectors as well as see status of the connectors and tasks.

Kafka Connector Quick Start

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.