HSR Kafka Tutorial: Learn Confluent Platform Fast with Real Examples

Logan Jul 13, 2026

Kafka is a powerful open-source stream-processing software platform, and Highlight Search & Replace (HSR) is a useful tool for manipulating and transforming Kafka topics and messages. This comprehensive tutorial guides you through leveraging HSR with Apache Kafka, explaining key concepts, installation, configuration, and practical usage scenarios.

an anime character is standing in front of a poster with information about her abilities and abilities
an anime character is standing in front of a poster with information about her abilities and abilities

To get started, ensure you have a running Kafka cluster. If you don't, set up a single-node cluster for testing purposes. We'll use Kafka version 2.8.1 and HSR version 2.0.0 for this tutorial. Once your Kafka cluster is ready, let's dive into integrating HSR for Kafka.

Archive (@DragaliaArchive) on X
Archive (@DragaliaArchive) on X

Installing and Configuring HSR for Kafka

HSR is a simple, lightweight tool built on top of Kafka Streams API. It allows you to search, replace, and manipulate Kafka messages without aquiing any data or altering original topics.

COLORING TUTㅤㅤㅤ﹒ㅤ  𝐊𝐀𝐅𝐊𝐀
COLORING TUTㅤㅤㅤ﹒ㅤ 𝐊𝐀𝐅𝐊𝐀

To install HSR, clone the GitHub repository and build the project using Maven:

```bash git clone https://github.com/linkedin/hsr.git cd hsr mvn clean package ```

Configuring HSR for Kafka

kafka
kafka

Create a configuration file (e.g., hsr config) in the project root directory with the following content:

```json { "bootstrap.servers": "localhost:9092", "group.id": "hsr-group", "application.id": "hsr-app" } ```

This configuration connects HSR to a Kafka broker running on the local machine.

Building and Running HSR

Kafka Fanart Honkai, Starrail Wallpaper, Hsr Kafka Wallpaper, Honkai Star Rail Kafka Wallpaper 4k, Kafka Honkai Star Rail Fanart, Kafka Wallpaper Hsr, Wallpaper Kafka Honkai Star Rail, Kafka Wallpaper Honkai, Kafka Fanart
Kafka Fanart Honkai, Starrail Wallpaper, Hsr Kafka Wallpaper, Honkai Star Rail Kafka Wallpaper 4k, Kafka Honkai Star Rail Fanart, Kafka Wallpaper Hsr, Wallpaper Kafka Honkai Star Rail, Kafka Wallpaper Honkai, Kafka Fanart

Now you can build and run HSR using the following commands:

```bash mvn compile exec:java -Dexec.mainClass="com.linkedin.hsr.cli.Main" -Dexec.args="--config=hsr-config.json search-topic --topic=my-topic --query=your-search-query --replacement=new-value" ```

In this example, we search for 'your-search-query' in 'my-topic' and replace it with 'new-value'.

Searching, Replacing, and Manipulating Kafka Messages

an anime character is standing in front of a large screen with the words i can smell
an anime character is standing in front of a large screen with the words i can smell

HSR provides various operations to manipulate Kafka messages. Let's explore some key use cases.

Search and Replace

✧ Stellaron Hunters 🔥 ✧
✧ Stellaron Hunters 🔥 ✧
an anime character with purple hair and bunny ears, holding her arm out to the side
an anime character with purple hair and bunny ears, holding her arm out to the side
ㅤㅤ ﹙♡﹚ㅤㅤ kafka
ㅤㅤ ﹙♡﹚ㅤㅤ kafka
Twitter Artist: ✨ @soufflebune ✨ honkai star rail kafka ✨
Twitter Artist: ✨ @soufflebune ✨ honkai star rail kafka ✨
hsr kafka tutorial lc
hsr kafka tutorial lc
kafka
kafka
『 Kafka 』
『 Kafka 』
Kafka Honkai Star Rail Meme, Honkai Star Rail Kafka Pfp, Kafka Emoji Hsr, Kafka Emoji, Honkai Star Rail Reaction Pic, Kafka Funny, Hsr Reaction Pic, Hsr Kafka Gif, Kafka Hsr Reference
Kafka Honkai Star Rail Meme, Honkai Star Rail Kafka Pfp, Kafka Emoji Hsr, Kafka Emoji, Honkai Star Rail Reaction Pic, Kafka Funny, Hsr Reaction Pic, Hsr Kafka Gif, Kafka Hsr Reference
ᨦ  ۫𓂅 kafka
ᨦ ۫𓂅 kafka
Kafka Decals
Kafka Decals
kafka
kafka
honkai star rail - kafka
honkai star rail - kafka
Mommy Kafka, Hsr Kafka Icon, Kafka Hsr Icon, Hsr Icons, Kafka Icon Pfp, Kafka Hsr Fanart, Kafka Matching Icon, Hsr Icon, Kafka Fanart
Mommy Kafka, Hsr Kafka Icon, Kafka Hsr Icon, Hsr Icons, Kafka Icon Pfp, Kafka Hsr Fanart, Kafka Matching Icon, Hsr Icon, Kafka Fanart
I love kafka
I love kafka
a drawing of a woman holding a bow and arrow
a drawing of a woman holding a bow and arrow
V2
V2
KAFKA ML (mine)
KAFKA ML (mine)
𝖪𝖺𝖿𝗄𝖺
𝖪𝖺𝖿𝗄𝖺
an anime character with purple hair and black clothes, holding her arms out to the side
an anime character with purple hair and black clothes, holding her arms out to the side
Kafka | Honkai: Star Rail
Kafka | Honkai: Star Rail

As shown earlier, you can use HSR to search for a specific value in a Kafka topic and replace it with a new value.

удал Moderator Note: "Delete" is not allowed in this context. Removing content is not necessary in this response. Please rephrase or remove the non-sequitur.: