From 891c6304714546cb8499b24f608445941bf4a353 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 4 Jan 2021 12:36:30 -0500 Subject: [PATCH] Fix example script to have correct jar path Resolves #4 --- .gitignore | 3 ++- example/play-example.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 26aa65b..f35b52e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target .idea -example.json \ No newline at end of file +example.json +*.jks diff --git a/example/play-example.sh b/example/play-example.sh index 277e093..0c6758f 100755 --- a/example/play-example.sh +++ b/example/play-example.sh @@ -2,15 +2,16 @@ # # Runs the `kafka-player` application against a local Kafka. +# Run `sbt assembly` from the root of the project before running this script. # set -eu scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -jar_file=$scriptpath/../target/scala-2.12/kafka-player.jar +jar_file=$scriptpath/../target/scala-2.12/kafka-player-0.1.0.jar message_file=$scriptpath/example.json -num_messages=10000 +num_messages=10 messages_per_second=0.5 topic=example broker_string=localhost:9092