Skip to content

Commit 3f05e47

Browse files
Leonid Ryzhykryzhyk
authored andcommitted
[tiktok] Make Kafka endpoint configurable.
Allow specifying custom Kafka broker address in the tiktok benchmark. Signed-off-by: Leonid Ryzhyk <leonid@feldera.com>
1 parent ecda597 commit 3f05e47

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

benchmark/feldera-sql/benchmarks/tiktok/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
1. Ensure that you have Feldera is running.
55
2. Ensure that you have Kafka running.
6-
3. Set the environment variable `MAX_EVENTS` to the number of events to generate.
6+
3. Set the environment variable `MAX_EVENTS` to the number of events to generate.
77
`MAX_EVENTS=100000000`
8-
4. Run `generate.bash`. (`source generate.bash`)
9-
5. Run the `feldera/benchmark/feldera-sql/run.py` script as follows:
8+
4. Set the environment variable `BOOTSTRAP_SERVERS` to point to the Kafka port
9+
`BOOTSTRAP_SERVERS=localhost:9092`
10+
5. Run `generate.bash`. (`source generate.bash`)
11+
6. Run the `feldera/benchmark/feldera-sql/run.py` script as follows:
1012

1113
```sh
1214
cd feldera/benchmark/feldera-sql

benchmark/feldera-sql/benchmarks/tiktok/generate.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ BASEDIR="$(pwd)" # get the current directory
22
cd "$(dirname "${BASH_SOURCE[0]}")" # cd to the directory this script is in
33
TIKTOK_GEN="$(realpath ../../../../demo/project_demo12-HopsworksTikTokRecSys/tiktok-gen)"
44
cd $TIKTOK_GEN # cd to the tiktok generator directory
5-
cargo run --release -- --historical --delete-topic-if-exists -I ${MAX_EVENTS:-50000000}
5+
cargo run --release -- --historical --delete-topic-if-exists -I ${MAX_EVENTS:-50000000} -B ${BOOTSTRAP_SERVERS:-localhost:9092}
66
cd $BASEDIR

0 commit comments

Comments
 (0)