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 to use Kafka Streams.

Maven Dependency

To compile a Kafka Streams application, you must add the appropriate Maven dependency. Add a HPE maven repository and the Kafka Streams dependency to your pom.xml file to pull in the Maven artifacts.

Example

The following pom.xml example may not correlate with the product versions you are installing.

<repository>
    <id>mapr-releases</id>
    <url>https://repository.mapr.com/maven/</url>
</repository>
<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>kafka-streams</artifactId>
    <version>3.6.1-eep-930</version>
</dependency>
<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>kafka-clients</artifactId>
    <version>3.6.1-eep-930</version>
</dependency>

Configure Kafka Streams

To configure Kafka Streams, see Kafka Streams Configuration.