2017-04-12 1 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

어떻게 된 것인지 알 수 없습니다. 내 콘솔에서는 모두 비슷하게 보입니다. 삭제하고 다시 입력했습니다. 그것은 효과가있다. –