Exception in thread “main“ joptsimple.UnrecognizedOptionException: partition is not a recognized opt

Exception in thread “main“ joptsimple.UnrecognizedOptionException: partition is not a recognized opt_第1张图片
命令错误
仔细检查命令输入对没!!!

启动
nohup bin/kafka-server-start.sh config/server.properties &
创建主题
bin/kafka-topics.sh --create --bootstrap-server node7-1:9092,node7-2:9092,node7-3:9092,node7-4:9092 --replication-factor 1 --partitions 1 --topic test04
查看主题
bin/kafka-topics.sh --list --zookeeper node7-1:2181,node7-2:2181,node7-3:2181,node7-4:9092
启动生产者
bin/kafka-console-producer.sh --broker-list node7-1:9092,node7-2:9092,node7-3:9092,node7-4:9092 --topic test04
启动消费者
bin/kafka-console-consumer.sh --bootstrap-server node7-1:9092,node7-2:9092,node7-3:9092,node7-4:9092 --topic test04

你可能感兴趣的:(大数据,kafka,知识点,kafka)