The error when calling the producer remotely to write data is as follows
ERROR Error when sending message to topic test with key: null, value: 6 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
Kafka can produce and consume when connected locally
vi config/server.properties
Listeners listening annotation opens and specifies the current machine IP and port
For details, please refer to the problem that kafka cannot connect remotely