Re: Regarding Kafka Consumer

2017-11-24 Thread simarpreet kaur
Thanks, Faraz.

I am using its Java API. It does not seem to provide such method to the
consumer.

On Wed, Nov 22, 2017 at 2:45 PM, Faraz Mateen <fmat...@an10.io> wrote:

> Not sure which client you are using.
> In kafka-python, consumer.config returns a dictionary with all consumer
> properties.
>
> Thanks,
> Faraz
>
> On Mon, Nov 20, 2017 at 5:34 PM, simarpreet kaur <simarkau...@gmail.com>
> wrote:
>
>> Hello team,
>>
>> I wanted to know if there is some way I can retrieve consumer properties
>> from the Kafka Consumer. for example, if at runtime, I want to know the
>> group id of a particular consumer, in case multiple consumers are running
>> in my application.
>>
>> Thanks & Regards,
>> Simarpreet
>>
>
>


Re: KafkaConsumer current offsets

2017-11-24 Thread simarpreet kaur
Hii Sameer,

You can find the current offset of a consumer using method *position *provided
to Kafka Consumer. This method takes the topic partition in parameter to
know which partition you want offset of.
For example, you can do something like
*consumer.position()*

To find the topic partitions assigned to your consumer, you can do*
consumer.assignment().*
For more information on consumer offsets, you can refer to the blog.



On Thu, Nov 23, 2017 at 12:39 PM, Sameer Kumar 
wrote:

> Guys, any thoughts on below request.(getting current offsets of a consumer
> group) through a java api.
>
>
>
> On Wed, Nov 22, 2017 at 4:49 PM, Sameer Kumar 
> wrote:
>
> > Hi All,
> >
> > I wanted to know if there is any way to get the current offsets of a
> > consumer group through a java api.
> >
> > -Sameer.
> >
>


Regarding Kafka Consumer

2017-11-20 Thread simarpreet kaur
Hello team,

I wanted to know if there is some way I can retrieve consumer properties
from the Kafka Consumer. for example, if at runtime, I want to know the
group id of a particular consumer, in case multiple consumers are running
in my application.

Thanks & Regards,
Simarpreet