【问题标题】:Kafka Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformanceKafka 错误:无法找到或加载主类 org.apache.kafka.clients.tools.ProducerPerformance
【发布时间】:2014-07-16 12:30:49
【问题描述】:

我正在尝试按照以下文章为 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版本的吗?或者我需要从其他地方下载课程?

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

【问题讨论】:

    标签: apache-kafka clj-kafka


    【解决方案1】:

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

    有关更多详细信息,请查看我的答案以查找可能重复的question

    【讨论】:

      【解决方案2】:

      我认为您需要先构建项目,然后再运行此命令。您可以使用 sbt 等构建工具,如他们的 official web site 中所述

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-08-27
        • 2016-06-12
        • 2016-03-16
        • 2016-01-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多