You need to explicitly set the "group.id" configuration property (with
rd_kafka_conf_set()) when using the high-level consumer.

Den sön 10 mars 2019 kl 18:57 skrev K R, Rakesh <r...@hpe.com>:

> Then any idea on why I am seeing this error
> RD_KAFKA_RESP_ERR__UNKNOWN_GROUP without group id?
>
> -----Original Message-----
> From: Akshata akshu [mailto:akshataaksh...@gmail.com]
> Sent: Sunday, March 10, 2019 11:20 PM
> To: users@kafka.apache.org
> Subject: Re: group id issue on kafka using C library
>
> Hi,
> Group id is not mandatory. If you create a consumer without the group id
> random group id is assigned for the consumer.
>
> On Sun 10 Mar, 2019 11:08 pm K R, Rakesh, <r...@hpe.com> wrote:
>
> > Hi,
> > I am completely new to this kafka.
> > I was just playing around with example code provided in the repo
> > https://github.com/edenhill/librdkafka/tree/master/examples.
> > I have encountered an issue where rd_kafka_poll_set_consumer() api
> > throws me an error saying Local: Unknown group
> > (RD_KAFKA_RESP_ERR__UNKNOWN_GROUP ) Using consumer group is mandatory?
> > I am using librdkafka v1.0.0 (0x10000ff)
> >
> > Thanks & Regards,
> > Rakesh K R
> >
> >
>

Reply via email to