我正在尝试在ec2实例上创建一个kafka主题,我正在遵循这个文档https://aws.amazon.com/blogs/big-data/real-time-stream-processing-using-apache-spark-streaming-and-apache-kafka-on-aws/,但是我得到了以下错误,请帮助
ec2-user@ip-10-100-53-218 bin]$ ./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
Error while executing topic command : replication factor: 1 larger than available brokers: 0
[2017-03-20 12:25:30,045] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: replication factor: 1 larger than available brokers: 0
(kafka.admin.TopicCommand$)发布于 2017-03-21 01:28:28
kafka代理没有运行。通过SSH登录Kafka Broker实例,检查kafka-server-start.sh是否正在运行。
ps -ef | grep kafka-server-start如果没有运行,请启动它。
nohup /app/kafka/kafka_2.9.2-0.8.2.1/bin/kafka-server-start.sh /app/kafka/kafka_2.9.2-0.8.2.1/config/server.propertieshttps://stackoverflow.com/questions/42908974
复制相似问题