Following exception received while starting 2nd broker:
[2022-09-09 20:29:35,769] ERROR [KafkaServer id=0] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) org.apache.kafka.common.KafkaException: Socket server failed to bind to 0.0.0.0:9092: Address already in use: bind.
`Tried to start two Kafka brokers .
Below are the configs mentioned in the server.properties and server-copy.properties file
Broker 1:
File : server.properties
broker.id=0
listeners=PLAINTEXT://:9094
Broker 2:
File : server-copy.properties
broker.id=1
listeners=PLAINTEXT://:9093