I have a kafka environment that has 3 brokers and 1 zookeeper . I clicked on> 20K post in my thread. Apache Storm calculates data in a topic that is added by the manufacturer.
A few hours later, while I try to create messages for kafka, it shows the following exception
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
After rebooting the server, kafka works fine. but on production I cannot restart my server every time. so can someone help me figure out my problem.
my kafka configuration is as follows:
prodProperties.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,"list of broker"); prodProperties.put(ProducerConfig.ACKS_CONFIG, "1"); prodProperties.put(ProducerConfig.RETRIES_CONFIG, "3"); prodProperties.put(ProducerConfig.LINGER_MS_CONFIG, 5);
source share