我正在尝试创建一个关于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$)
1条答案
按热度按时间brc7rcf01#
Kafka经纪人不在运行。ssh到kafka代理示例中,并检查kafka-server-start.sh是否正在运行。
如果不运行,启动它。