卡夫卡 - 性能测试

时间:2017-04-12 13:53:40

标签: apache-kafka

Kafka版本:0.9

命令:

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

错误:

  

用法:producer-performance [-h] --topic TOPIC --num-records   NUM-RECORDS - 记录大小的记录大小 - 吞吐量THROUGHPUT   --producer-props PROP-NAME = PROP-VALUE [PROP-NAME = PROP-VALUE ...] producer-performance:错误:无法识别的参数:' - topic testY   --num-records 10000 --record-size 5000 --producer-props bootstrap.servers = servers --throughput 10'

该命令有什么问题?

1 个答案:

答案 0 :(得分:1)

在主题之前你有一个超大的破折号。

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