Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Fatal error: Uncaught Kafka\Exception: Not has broker can connection metadataBrokerList #285

Open
badaay opened this issue Dec 13, 2019 · 4 comments

Comments

@badaay
Copy link

badaay commented Dec 13, 2019

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??

@frankhubrepo
Copy link

Could you solve this issue? I'm having the same problem

@daoyan1
Copy link

daoyan1 commented Feb 12, 2020

修改socket的连接时间即可,默认是0.1秒

@parveenbadoni
Copy link

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.

@basit-tkxel
Copy link

any update on this issue? I'm having this issue and unable to resolve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants