Kafka console consumer ERROR “Offset commit failed on partition”

If you increase max.poll.interval.ms that says “it’s ok to spend time processing a large batch of records” and you’ll gain throughput if you can process larger batches more efficiently than smaller ones. To decrease max.poll.records says ”take fewer records so there’s enough time to process them” and would favor latency over throughput. Also consider that … Read more

Kafka Producer error Expiring 10 record(s) for TOPIC:XXXXXX: 6686 ms has passed since batch creation plus linger time

This exception is occurring because you are queueing records at a much faster rate than they can be sent. When you call the send method, the ProducerRecord will be stored in an internal buffer for sending to the broker. The method returns immediately once the ProducerRecord has been buffered, regardless of whether it has been … Read more

Why does kafka producer take a broker endpoint when being initialized instead of the zk

which broker should my producer use? Do I need to manually switch the broker to balance the load? Kafka runs on cluster, meaning set of nodes, so while producing anything you need to tell him the LIST of brokers that you’ve configured for your application, below is a small note taken from their documentation. “metadata.broker.list” … Read more

Kafka and firewall rules

Kafka and zookeeper are different things. If you are running both on the same machine, you need to open both ports, of corse. kafka default ports: 9092, can be changed on server.properties; zookeeper default ports: 2181 for client connections; 2888 for follower(other zookeeper nodes) connections; 3888 for inter nodes connections; That’s it. Kafka, also has … Read more

how do you get default Kafka configs global and per topic from command line?

Since Kafka 2.5.0 (see https://issues.apache.org/jira/browse/KAFKA-9040), you can now use the –all option to see all (default and overridden) topic configuration: % kafka-configs –bootstrap-server <KAFKA_SERVERS> –entity-type topics –entity-name <TOPIC_NAME> –describe –all All configs for topic <TOPIC_NAME> are: compression.type=producer sensitive=false synonyms={} message.format.version=1.0-IV0 sensitive=false synonyms={} file.delete.delay.ms=60000 sensitive=false synonyms={} leader.replication.throttled.replicas= sensitive=false synonyms={} max.message.bytes=1000012 sensitive=false synonyms={} min.compaction.lag.ms=0 sensitive=false synonyms={} message.timestamp.type=CreateTime … Read more

How does an offset expire for an Apache Kafka consumer group?

Update Since Apache Kafka 2.1, offsets won’t be deleted as long as the consumer group is active, independent if the consumers commit offsets or not, ie, the offset.retention.minutes clocks only starts to tick when the group becomes empty (in older released, the clock started to tick directly when the commit happened). Cf. https://cwiki.apache.org/confluence/display/KAFKA/KIP-211%3A+Revise+Expiration+Semantics+of+Consumer+Group+Offsets Original Answer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)