These are chat archives for arnaud-lb/php-rdkafka

7th
Jul 2016
ahuigo
@ahuigo
Jul 07 2016 10:55
Hi, I come across an error : "%3|1467888104.894|FAIL|rdkafka#consumer-1| 10.160.133.7:9092/3: Receive failed: Disconnected", where I try to connect kafka.
This message was deleted
ahuigo
@ahuigo
Jul 07 2016 11:00
$rk = new RdKafka\Producer();
$rk->setLogLevel(LOG_DEBUG);
$rtn = $rk->addBrokers("10.160.132.242:2181");
var_dump($rtn);

output:

%3|1467888397.800|FAIL|rdkafka#producer-1| 10.160.132.242:2181/bootstrap: Receive failed: Disconnected

Can I replace 10.160.132.242:2181/bootstrap with 10.160.132.242:2181/kafka-sys-lycc?

This message was deleted
Magnus Edenhill
@edenhill
Jul 07 2016 12:40
@hilojack the /bootstrap part is appended by librdkafka to differntiate it from a automatically broker learnt from cluster metadata (which then has the broker id after the slash, e.g,. ../3 )
so no, it cant be changed.
ahuigo
@ahuigo
Jul 07 2016 12:47
@edenhill ok