laravel-queue-kafka icon indicating copy to clipboard operation
laravel-queue-kafka copied to clipboard

Error RdKafka\Conf::setDefaultTopicConf() is deprecated

Open shreyasmsglob opened this issue 6 years ago • 8 comments

I have followed the installation method as mentioned in the wiki. But when i run the app , it is throwing an error saying "Function RdKafka\Conf::setDefaultTopicConf() is deprecated".

shreyasmsglob avatar Nov 15 '19 11:11 shreyasmsglob

I am getting the same error after running this command
export KAFKA_CONSUMER_GROUP_ID="group2" && php artisan queue:work --sleep=3 --tries=3

abdulspokesly avatar Nov 15 '19 12:11 abdulspokesly

I am getting the same error after running this command export KAFKA_CONSUMER_GROUP_ID="group2" && php artisan queue:work --sleep=3 --tries=3

hello did u do anything other than the things mentioned in wiki to start consumer and producer? and running the kafka server in local?

shreyasmsglob avatar Nov 16 '19 04:11 shreyasmsglob

This should be a warning and not an error right?

I'm gonna check what they recommend using now instead of setDefaultTopicConf

petermein avatar Nov 18 '19 07:11 petermein

Any solution?

masssoud avatar Nov 19 '19 09:11 masssoud

@petermein this is not a warning. In the new version of rdkafka this throws an error

hi-rad avatar Nov 23 '19 08:11 hi-rad

I also have the same issue when I run php artisan queue:work

In KafkaConnector.php line 53:

  Function RdKafka\Conf::setDefaultTopicConf() is deprecated

My Kafka version is kafka_2.11-2.1.1 (Scala: 2.11, Kafka: 2.1.1) I found Kafka version based on this post https://stackoverflow.com/questions/27606065/how-to-find-the-kafka-version-in-linux

My rdkafka info in php info (php -i | grep rdkafka)

rdkafka
rdkafka support => enabled
librdkafka version (runtime) => 1.3.0-14-g1f3f46
librdkafka version (build) => 1.3.0.255

I hope this helps

Sadegh-Ameri avatar Feb 09 '20 00:02 Sadegh-Ameri

Any Update on this?

ShankarParimi avatar Aug 01 '20 19:08 ShankarParimi

Sorry, for the absence. I'm working on the next major feature adressing this issue Follow my progress on the next branch

petermein avatar Sep 15 '20 07:09 petermein