Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default instructions will not work without the addition of -output-eventhubs false #13

Open
guilhemmarchand opened this issue Sep 9, 2020 · 0 comments

Comments

@guilhemmarchand
Copy link

guilhemmarchand commented Sep 9, 2020

The default instructions in the README show 3 examples:

java -jar build/libs/kafka-data-gen.jar -message-count 20000000 -message-size 256 -topic kafka-demo -bootstrap.servers "localhost:9092" -acks all -kafka-retries 0 -kafka-batch-size 60000 -kafka-linger 1 -kafka-buffer-memory 33554432 -eps 10000

java -jar build/libs/kafka-data-gen.jar -message-count 20000000 -message-size 256 -topic kafka-demo -bootstrap.servers "localhost:9092" -acks all -kafka-retries 0 -kafka-batch-size 60000 -kafka-linger 1 -kafka-buffer-memory 33554432 -eps 0

java -jar build/libs/kafka-data-gen.jar -message-count 10 -message-size 256 -topic kafka-demo -bootstrap.servers "localhost:9092" -acks all -kafka-retries 0 -kafka-batch-size 60000 -kafka-linger 1 -kafka-buffer-memory 33554432 -eps 0 -generate-kafka-headers true -header-gen-profile 0

However this does not work and generates the following message in data-gen.log:

2020-09-09 10:16:43,068 INFO g.DataGenerator [main] Starting Kafka Data Generator
2020-09-09 10:16:43,094 INFO g.DataGenerator [main] Parsing CLI arguments
2020-09-09 10:16:43,095 ERROR g.DataGenerator [main] Output to Kafka and Output to EventHubs can't be enabled/disabled at the same time

If I had at the end of the command the following arguments then this works:

-output-eventhubs false -output-kafka true -output-stdout false

Example:

java -jar build/libs/kafka-data-gen.jar -message-count 20000000 -message-size 256 -topic kafka-demo -bootstrap.servers "localhost:19092" -acks all -kafka-retries 0 -kafka-batch-size 60000 -kafka-linger 1 -kafka-buffer-memory 33554432 -eps 0 -output-eventhubs false -output-kafka true -output-stdout false

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant