Merge pull request #5 from scribd/issue-4/fix-example-script

Fix example script to have correct jar path
This commit is contained in:
Christian Williams 2021-01-04 12:47:24 -05:00 committed by GitHub
commit d82b42f8c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
target
.idea
example.json
example.json
*.jks

View File

@ -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