Installing Kafka Streams

Kafka Streams is a Java library and is part of the mapr-kafka package. Kafka Streams does not require special installation steps; however, you must install the mapr-core and mapr-kafka packages in order to use Kafka Streams.

Maven Dependency

To compile a Kafka Streams application, you must add the appropriate Maven dependency. Add a MapR maven repository and the Kafka Streams dependency to your pom.xml file to pull in the Maven artifacts. For more information about Maven artifacts and running a Kafka Streams Java application, see Running a Kafka Streams Java App.

<repository>
    <id>mapr-releases</id>
    <url>http://repository.mapr.com/maven/</url>
</repository>
<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>kafka-streams</artifactId>
    <version>4.1.0-mapr-1808</version>
</dependency>
<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>kafka-clients</artifactId>
    <version>4.1.0-mapr-1808</version>
</dependency>

Configure Kafka Streams

To configure Kafka Streams, see Kafka Streams Configuration.