启动:bin/kafka-server-start.sh config/server.properties --nohup
创建topic:/bin/katopics.sh --create --zookeeper 172.16.29.231:2181 --replication-factor 1 --partitions 1 --topic topic1
kafka查看topic和消息内容命令: /bin/kafka-console-consumer.sh --zookeeper localhost:9092 --topic topic1 --from-beginning
kafka写入数据:2.11版本以上:cat outes.json |./kafka_2.11-0.8.2.1/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic topic1
kafka命令
最新推荐文章于 2024-04-13 11:22:04 发布