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. - For Maven repository information and Kafka Streams dependency versions, see Maven Artifacts for the HPE Ezmeral Data Fabric
- For more information about Maven artifacts and running a Kafka Streams Java application, see Running a Kafka Streams Java App.
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.