apache-kafka - 卡夫卡错误 : Could not find or load main class org. apache.kafka.clients.tools.ProducerPerformance

标签 apache-kafka clj-kafka

我正在尝试按照以下 Apache Kafka 文章运行性能测试

引用:

https://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines

链接测试:https://gist.github.com/jkreps/c7ddb4041ef62a900e6c

但是当我运行这个时:

 bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=localhost:9092 buffer.memory=67108864 batch.size=8196

显示错误:

Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance

是关于kafka版本的吗?或者我需要从其他地方下载类(class)?

我的 org.apache.kafka.clients.tools.ProducerPerformance 类在哪里?请建议..

最佳答案

ProducerPerformance 的包名称已从 org.apache.kafka.clients.toolsorg.apache.kafka.tools

有关更多详细信息,请检查我的答案是否可能重复 question .

关于apache-kafka - 卡夫卡错误 : Could not find or load main class org. apache.kafka.clients.tools.ProducerPerformance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24780849/

相关文章:

java - 线程 "main"java.lang.NoClassDefFoundError : backtype/storm/spout/MultiScheme 中出现异常

clojure - Kafka 的 ZookeeperConsumerConnector.createMessageStreams 永远不会返回

java - 如何修复 'Offset commit failed on partition com.application.iot.measure.stage-0 at offset 1053078427: The request timed out.'

apache-kafka - 无法在 Kafka 中创建主题

apache-kafka - Kafka 消费者组中只有一个消费者获取消息

apache-kafka - KAFKA消费者和分区

java - Maven 构建失败,因为它无法识别添加到构建路径的 .jar

azure - 使用 Kafa 和 Azure 事件中心连接字符串接收数据

容器启动时应用程序错误地解析了 Docker 别名