Gibbs
Gibbs

Reputation: 22974

Kafka - performance test

Kafka version: 0.9

Command:

 kafka-run-class org.apache.kafka.tools.ProducerPerformance –-topic testY --num-records 10000 --record-size 5000 --producer-props bootstrap.servers=servers --throughput 10

Error:

usage: producer-performance [-h] --topic TOPIC --num-records NUM-RECORDS --record-size RECORD-SIZE --throughput THROUGHPUT --producer-props PROP-NAME=PROP-VALUE [PROP-NAME=PROP-VALUE ...] producer-performance: error: unrecognized arguments: '–-topic testY --num-records 10000 --record-size 5000 --producer-props bootstrap.servers=servers --throughput 10'

What is wrong with the command?

Upvotes: 0

Views: 1548

Answers (1)

ImbaBalboa
ImbaBalboa

Reputation: 867

You have an oversized dash before topic.

kafka-run-class org.apache.kafka.tools.ProducerPerformance --topic testY --num-records 10000 --record-size 5000 --producer-props bootstrap.servers=servers --throughput 10

Upvotes: 1

Related Questions