Questions tagged [consumer]
649 questions
0
votes
1 answer
when the amount of messages reach the maxsize of retention.bytes ,the kafka will delete messages,the offset will be reset to zero?
I am new to kafka, when we use kafka,we can set the retention.bytes. say we set to 1GB, if the amount of message reach 1GB,kafka will delete messages.I want to ask that the offset will be reset to zero?
second, the consumer set auto.offset.reset to…

JiChao
- 3
- 1
0
votes
1 answer
Why does this consumer (running on a servlet) not receive any messages from the kafka topic?
I've setted up an kafka-consumer on my servlet. I read from my kafka topic and want to print the latest value using the doGet-method of the servlet.
But if I send the doGet I just get a "null" back...
I'm not sure, but I found another post, where…

Tobias Gent
- 35
- 8
0
votes
1 answer
RabbitMQ Consumer error message
My RabbitMQ server is running perfectly. Check below for ports and ip.
C:\Users\parmarc>netstat -ano | find "5672"
TCP 0.0.0.0:5672 0.0.0.0:0 LISTENING 2704
TCP 0.0.0.0:15672 0.0.0.0:0 …

Chirag Parmar
- 833
- 11
- 26
0
votes
0 answers
Kafka consumer offset commit UNKNOWN_MEMBER_ID
I would like to share the properties before i clearly explain the issue.
Below are the properties of producer that i have used:
bootstrap.servers=xyz:9092
acks=all
retries=0
batch.size=16384
auto.commit.interval.ms=1000
linger.ms=0…

user3329002
- 156
- 2
- 9
0
votes
0 answers
How to signal all consumers after finishing to produce? (Producer-Consumers Multithread Programming C CONDITION VARIABLES)
I have an assignment to complete and got stucked at one point . Is the classical producer-consumers problem with 1 producer, n multiple consumers and a MAX number of items produced.
I have to use Condition Variables. I have 2 big doubts:
1- How to…

kensei
- 13
- 1
- 3
0
votes
1 answer
Why System.out::println is slower than anonymous class implementation in Java 8?
I was working with some Java 8 Stream APIs. I am confused to see the performance difference between below two solutions, that are just printing the contents of Stream.
Solution 1:
int[] array = new int[] { 0, 1, 2, 3, 4, 5 };
start =…

Amber Beriwal
- 1,568
- 16
- 30
0
votes
1 answer
Why kafka 0.10 console producer cannot send messages to kafka 0.9?
Why kafka 0.10 console producer cannot send messages to kafka 0.9?
I am starting kafka console consumer in version 0.9 (on the server side).
I am starting kafka console producer in version 0.10 (on the client side).
Then I got in producer exception…

Seweryn Habdank-Wojewódzki
- 2,037
- 4
- 30
- 51
0
votes
1 answer
solace consumer attach MessageListener warning
I'm trying to user a JMS implementation to send/receive message at #Solace Appliance.
I'm using SolConnectionFactoryImpl factory to create the connection.
Everything look's Ok but when I'm trying to attach the MessageListener event to the JMS…

Rodrigo Minor
- 1
- 1
0
votes
0 answers
How do I add new lines in the String passed to a java.util.function.Function? It ignores \n \t or System.lineSeparator()
Trying to separate issue items with new lines to make it more readable to the user. I am using a java.util.function. Function to signal to the user that there is an issue.
Function issueCallback
This is what I am trying to execute…

kloklo90
- 81
- 1
- 14
0
votes
0 answers
Spring Integration Kafka (2.0.0) with Spring Kafka 1.0.2 consumers receive duplicate message
I have 2 Spring Boot projects, 1st one is a Producer that sends message to a Topic with one partition.
2nd one is a Consumer application, that reads from the Topic and one partition.
For the consumer, I use KafkaMessageDrivenChannelAdapter,…

Chris G
- 1
- 1
0
votes
1 answer
Not able to get mutex locks to prevent threads from accessing a function
Working on the Producer and Consumer problem for a class and having trouble just putting on the final touches. The problem I am encountering is that i think my mutex locks are not locking my threads out of the function. For example if I run the…

nojames
- 11
- 2
0
votes
2 answers
What would cause uvm consumer 'put' task to be called before the producer executed the myport.put
My uvm_driver (producer) is sharing data with a uvm_component (consumer) via a put port. The shared item is a uvm_transaction class xfer_data with two data members and a method getdata. The driver calls getdata then immediately does the .put call…

RossS
- 31
- 5
0
votes
1 answer
Consumer group is not working with .net client
I am using Kafka .Net client and trying to consume records with multiple consumers.But getting same message in all the consumers.I have set consumer group also for my topic but does not work.I am using kafka 0.9.0.Is there any specific setting so…

vicky garg
- 181
- 1
- 1
- 4
0
votes
1 answer
Kafka server contains messages but consumer cannot receive any(producer used compression.type=snappy)
I am a newbie in Kafka.When using kafka 0.9.0, I can set a codec by setting the compression.type property of my kafka producer.
Suppose I use snappy compression in my producer, when consuming the messages from kafka using some kafka-consumer, should…
0
votes
2 answers
Can I register a listener on MessageConsumer and then call the receive() method? (JMS)
I was wondering whether I could register a listener on MessageConsumer and then call the receive() method. I know it doesn't sound like it is a practical scenario but it would be interesting to know. Does the JMS specification even allow something…

Bat0u89
- 610
- 2
- 17
- 25