#!/bin/bash
kafka_home=/opt/module/kafka-3.2.1
#${kafka_home}/bin/kafka-console-producer.sh --broker-list hadoop102:9092,hadoop103:9092,hadoop104:9092 --topic $1
${kafka_home}/bin/kafka-console-producer.sh --bootstrap-server hadoop102:9092,hadoop103:9092,hadoop104:9092 --topic $1
网友评论