kafka-php
kafka-php copied to clipboard
Fatal error: Uncaught Kafka\Exception: Not has broker can connection `metadataBrokerList`
Fatal error: Uncaught Kafka\Exception: Not has broker can connection metadataBrokerList
in ~/Kafka/vendor/nmred/kafka-php/src/Kafka/Producer/Process.php on line 193
Kafka\Exception: Not has broker can connection metadataBrokerList
in .~/Kafka/vendor/nmred/kafka-php/src/Kafka/Producer/Process.php on line 193
$config = \Kafka\ProducerConfig::getInstance();
$config->setMetadataRefreshIntervalMs(10000);
$config->setBrokerVersion('1.0.0');
//I already using 127.0.0.1 and my local server IP but still not working
$config->setMetadataBrokerList('localhost:9092');
$config->setRequiredAck(1);
$config->setIsAsyn(false);
$config->setProduceInterval(500);
$config->setClientId('test');
can anyone help??
Could you solve this issue? I'm having the same problem
修改socket的连接时间即可,默认是0.1秒
Could you solve this issue? I'm having the same problem
It is unable to connect to server within specified time, you need to increase the time in socket.php.
any update on this issue? I'm having this issue and unable to resolve it.