Amazon web services 无法创建卡夫卡主题

Amazon web services 无法创建卡夫卡主题,amazon-web-services,apache-kafka,apache-zookeeper,Amazon Web Services,Apache Kafka,Apache Zookeeper,我试图在ec2实例上创建一个卡夫卡主题, 我遵循这个文件 但我得到以下错误,请帮助 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 expec

我试图在ec2实例上创建一个卡夫卡主题, 我遵循这个文件 但我得到以下错误,请帮助

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$)

卡夫卡经纪人没有运行。SSH连接到Kafka代理实例,并检查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.properties

它正在运行,但仍然是相同的错误[ec2]-user@ip-10-100-52-58 config]$ps-ef | grep kafka服务器启动ec2用户30375 27676 0 13:52 pts/0 00:00:00 grep--color=auto kafka服务器启动您可以发布ps-ef的整个输出。应该有2行作为输出。您给出的1行是针对您运行的grep。