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'
该命令有什么问题?
答案 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