2017-04-12 138 views
0

卡夫卡版本: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 

错误:

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'

什么是错的命令?

回答

1

您的主题前有一个超大短跑。

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

我不知道它是怎么发生的。在我的控制台中,看起来都很相似。我删除并再次输入。这是工作。 –