Skip to content

Instantly share code, notes, and snippets.

View mpachama's full-sized avatar

Murugan Pachamalaiyan mpachama

View GitHub Profile
@mpachama
mpachama / benchmark-commands.md
Created April 26, 2022 13:56 — forked from ueokande/benchmark-commands.md
Kafka Benchmark Commands

Benchmark commands

Producer

Setup

bin/kafka-topics.sh \
  --zookeeper zookeeper.example.com:2181 \
  --create \
Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution: