Re: Query regarding kafka controller shutdown

2022-06-05 Thread Liam Clarke-Hutchinson
Off the top of my head, it looks like it lost network connectivity to some extent. Question - what settings were used for topics like efGamePlay? What is min insync replicas, replication factor, and what acks settings is the producer using? Cheers, Liam On Fri, 3 Jun 2022 at 22:55, dhiraj

Re: Event Grouping

2022-05-02 Thread Liam Clarke-Hutchinson
n be done in Java only. Our > development environment is strictly Python and while at it, we also looked > into Faust but we're preferring something that is pure Kafka without Java > development. > > > > On Monday, May 2, 2022, 07:11:55 PM PDT, Liam Clarke-Hutchinson &

Re: Event Grouping

2022-05-02 Thread Liam Clarke-Hutchinson
Hi Dave, I think you forgot to ask your question :D However, if you're looking to group those events from the input topic and then putting the aggregated event onto another topic, have you looked into Kafka Streams? https://kafka.apache.org/31/documentation/streams/ Cheers, Liam On Tue, 3 May

Re: Kafka Question

2022-05-02 Thread Liam Clarke-Hutchinson
Hi Emily, Nope, Kafka doesn't have that capability built in, it's just a distributed log that's great for streaming events. However, you can easily write a program that consumes those events from Kafka and then does what you want :) Cheers, Liam On Tue, 3 May 2022 at 06:30, Emily Schepisi

Re: kafka and Kube,

2022-05-02 Thread Liam Clarke-Hutchinson
Hi David, There's a couple of operators you can use that I'm aware of: Confluent for K8s: https://docs.confluent.io/operator/current/co-deploy-cfk.html Strimzi: https://strimzi.io/ I haven't used CFK, and big disclaimer, I work on Strimzi, so any particular opinion I'd have on it is totally

Re: How to deal with the Error: KAFKA_STORAGE_ERROR

2022-04-28 Thread Liam Clarke-Hutchinson
Hi Peter, Firstly, I'd check disk health, then I'd check owners and permissions on files in your log dir, eliminate those as issues. Secondly, are you tracking metrics on offline log dirs? Cheers, Liam On Thu, 28 Apr 2022 at 15:55, Dong, Peter A. (NSB - CN/Qingdao) <

Re: Requesting Pricing for Kafka Support

2022-04-26 Thread Liam Clarke-Hutchinson
Hi Lavanya, Apache Kafka is a free open source software project and as such, doesn't provide paid support. However, numerous companies do offer a supported Kafka product, you will be able to find them via googling "kafka support" or similar. Cheers, Liam On Wed, 27 Apr 2022 at 02:20, Lavanya

Re: Thank you!

2022-04-19 Thread Liam Clarke-Hutchinson
Hi Matt, Apache Kafka is a free open source software project, not too much swag on hand ;) Cheers, Liam On Tue, 19 Apr 2022 at 02:39, Matt Gilbert wrote: > I just wanted to reach out and thank you for all you do. I am a Senior > Test Engineer and wanted to reach out to see if you had any

Fwd: RuntimeMBeanException: getMBeanInfo threw RuntimeException caused by ConcurrentModificationException

2022-04-06 Thread Liam Clarke-Hutchinson
Hi Peter, Are you running the Prometheus exporter on a broker? Or on a Kafka client? Also, what version? Cheers, Liam Clarke-Hutchinson On Wed, 6 Apr 2022 at 19:14, Peter Schrott (Extern) wrote: > Hi users, > > I am getting this following exceptions occasionally: > JMX s

Re: Request was for a topic or partition that does not exist on this broker error when using Kafka in Kraft mode

2022-04-04 Thread Liam Clarke-Hutchinson
Hi Francis, The rebalancing is your consumer group, it looks like your consumer is repeatedly entering and leaving when hitting that error. Do you have logs from the consumer side? Cheers, Liam On Tue, 5 Apr 2022 at 11:30, Francis Chuang wrote: > Not sure if this is due to the broker

Re: kafka producer exception due to TimeoutException: Expiring records for topic 120000ms has passed since batch creation

2022-04-04 Thread Liam Clarke-Hutchinson
Hi Pushkar, Could be a lot of things. What's your linger.ms configured for? Cheers, Liam On Tue, 5 Apr 2022 at 05:39, Pushkar Deole wrote: > Hi All, > > We are intermittently seeing KafkaProducerException. The nested exception > is as below: > >

Re: Kafka Producer Record Error Rate

2022-04-04 Thread Liam Clarke-Hutchinson
work out the math > to calculate exactly how many records were dropped. > > Regards, > Neeraj > On Tuesday, 5 April, 2022, 07:47:21 am GMT+10, Liam Clarke-Hutchinson > wrote: > > Hi Neeraj, > > However, I am unclear what the record-error-rate|total metric f

Re: Kafka Producer Record Error Rate

2022-04-04 Thread Liam Clarke-Hutchinson
people think. Cheers, Liam Clarke-Hutchinson On Mon, 4 Apr 2022 at 19:29, Neeraj Vaidya wrote: > Thank you David and Liam for your excellent responses. > Checking in the consumer will be extremely difficult. > However, I am unclear what the record-error-rate|total metric for a > pro

Re: Kafka Producer Record Error Rate

2022-04-03 Thread Liam Clarke-Hutchinson
t's the case. Cheers, Liam Clarke On Mon, 4 Apr 2022 at 16:29, Neeraj Vaidya wrote: > Hi Liam, > Brokers are on Apache Kafka v2.7.0 > However, the Producer client is using the v2.6 libraries. > > Regards, > Neeraj On Monday, 4 April, 2022, 02:17:42 pm GMT+10, Liam >

Re: Kafka Producer Record Error Rate

2022-04-03 Thread Liam Clarke-Hutchinson
roducer errors indicate that these messages never made it to the > Kafka topic at all ? > > Regards, > Neeraj > On Monday, 4 April, 2022, 12:23:30 pm GMT+10, Liam Clarke-Hutchinson < > lclar...@redhat.com> wrote: > > Hi Neeraj, > > First off, what are your produc

Re: Kafka Producer Record Error Rate

2022-04-03 Thread Liam Clarke-Hutchinson
Hi Neeraj, First off, what are your producer settings? Secondly, do you have brokers logs for the leaders of some of your affected topics on hand at all? Cheers, Liam Clarke-Hutchinson On Mon, 4 Apr 2022 at 14:04, Neeraj Vaidya wrote: > Hi All, > For one of the Kafka producers that I h

Re: Newbie looking for a connector I can configure on my mac

2022-03-30 Thread Liam Clarke-Hutchinson
; Kind regards > > Andy > > On 3/29/22, 5:27 PM, "Liam Clarke-Hutchinson" > wrote: > > Hi Andrew, > > So if you've downloaded Apache Kafka, you can run a standalone connect > instance using the bin/connect-standalone.sh script mentioned. And &g

Re: Newbie looking for a connector I can configure on my mac

2022-03-29 Thread Liam Clarke-Hutchinson
t use > purely FOSS software (like the Wikimedia Foundation) makes Kafka Connect > effectively unusable. > > Okay carry on! :) > > - Andrew Otto > > > > > > On Tue, Mar 29, 2022 at 8:27 PM Liam Clarke-Hutchinson < > lclar...@redhat.com> > wrote: > > >

Re: Newbie looking for a connector I can configure on my mac

2022-03-29 Thread Liam Clarke-Hutchinson
/kafka-connect-reddit <- I haven't used this, but could be interesting? I hope this helps you get started, and please let me know if I can help with anything else :) Cheers, Liam Clarke On Wed, 30 Mar 2022 at 11:54, andrew davidson wrote: > I found the quick start https://kafka.apache.or

Re: Setting up the CooperativeStickyAssignor in Java

2022-03-19 Thread Liam Clarke-Hutchinson
Hi Richard, Yeah, the old 2.8.1 version of Kafka clients used by trunk fs2-kafka is what I think might be the issue, not the wrapper itself, sorry if I was unclear on that. Please let us know how your testing with the latest fs2-kafka that's using 3.1.0 goes. :) Kind regards, Liam Clarke

Re: Setting up the CooperativeStickyAssignor in Java

2022-03-19 Thread Liam Clarke-Hutchinson
has correct support for the > > messaging from the ConsumerCoordinator. I am planning to do a test with > the > > 3.0.0-M5 version which is built on the updated 3.1.0 kafka-clients > library > > and will let the list know. > > > > -Richard Ney > > > >

Re: Setting up the CooperativeStickyAssignor in Java

2022-03-18 Thread Liam Clarke-Hutchinson
, Liam Clarke-Hutchinson On Sat, 19 Mar 2022 at 14:24, Richard Ney wrote: > Thanks for the additional information Bruno. Does this look like a possible > bug in the CooperativeStickyAssignor? I have 5 consumers reading from a 50 > partition topic. Based on the log messages this application

Re: Compression - producer vs topic?

2022-03-15 Thread Liam Clarke-Hutchinson
Oh, and meant to say, zstd is a good compromise between CPU and compression ratio, IIRC it was far less costly on CPU than gzip. So yeah, I generally recommend setting your topic's compression to "producer", and then going from there. On Wed, 16 Mar 2022 at 11:49, Liam Clarke-Hutchin

Re: Compression - producer vs topic?

2022-03-15 Thread Liam Clarke-Hutchinson
trings. > > My local test is showing 75% reduction in size if I use zstd or gzip. I > care the most about Kafka storage costs right now. > > On Tue, Mar 15, 2022 at 2:25 PM Liam Clarke-Hutchinson < > lclar...@redhat.com> > wrote: > > > Hi Dan, > > > > Ok

Re: Compression - producer vs topic?

2022-03-15 Thread Liam Clarke-Hutchinson
(>100kbs) and 90% of > the records are smaller than 1kb. I'm working on a streaming analytics > solution that streams impressions, user actions and serving info and > combines them together. End-to-end latency is more important than storage > size. > > > On Mon, Mar 14, 2022

Re: Compression - producer vs topic?

2022-03-14 Thread Liam Clarke-Hutchinson
here might be more advice that's applicable :) Cheers, Liam Clarke-Hutchinson On Tue, 15 Mar 2022 at 10:05, Dan Hill wrote: > Hi. I looked around for advice about Kafka compression. I've seen mixed > and conflicting advice. > > Is there any sorta "if X, do Y" ty

Re: Few partitions stuck in under replication

2022-03-07 Thread Liam Clarke-Hutchinson
ks, > Dhirendra. > > On Mon, Mar 7, 2022 at 5:45 AM Liam Clarke-Hutchinson > > wrote: > > > Ah, I may have seen this error before. Dhirendra Singh, If you grep your > > logs, you may find an IllegalStateException or two. > > > > https://issues.ap

Re: consumer hpa autoscaling

2022-03-06 Thread Liam Clarke-Hutchinson
icies: > - type: Percent > value: 100 > periodSeconds: 60 > metrics: > - resource: > name: cpu > target: > averageUtilization: 30 > type: Utilization > type: Resource > > > > Thanks! > &

Re: Few partitions stuck in under replication

2022-03-06 Thread Liam Clarke-Hutchinson
Ah, I may have seen this error before. Dhirendra Singh, If you grep your logs, you may find an IllegalStateException or two. https://issues.apache.org/jira/browse/KAFKA-12948 You need to upgrade to 2.7.2 if this is the issue you're hitting. Kind regards, Liam Clarke-Hutchinson On Sun, 6 Mar

Re: consumer hpa autoscaling

2022-03-02 Thread Liam Clarke-Hutchinson
on what problem you're trying to solve, I might be able to give more specific advice. TL;DR - I've found using HPAs to scale applications in the same consumer group is very useful, but it needs to be tuned to minimise scaling that can cause pauses in consumption. Kind regards, Liam Clarke-Hu

Re: consumer hpa autoscaling

2022-02-28 Thread Liam Clarke-Hutchinson
I've used HPAs scaling on lag before by feeding lag metrics from Prometheus into the K8s metrics server as custom metrics. That said, you need to carefully control scaling frequency to avoid excessive consumer group rebalances. The cooperative sticky assignor can minimise pauses, but not remove

Re: Huge latency at consumer side ,testing performance for production and consumption

2022-01-28 Thread Liam Clarke-Hutchinson
> Luke >>>> >>>> >>>> On Mon, Dec 13, 2021 at 4:59 PM Jigar Shah >>>> wrote: >>>> >>>> > Hello , >>>> > Answering your first mail, indeed I am using consumer groups using >>>> > group.id >

Re: Huge latency at consumer side ,testing performance for production and consumption

2021-12-12 Thread Liam Clarke-Hutchinson
, this is why you're seeing that initial delay before consuming records. Kind regards, Liam Clarke-Hutchinson On Mon, 13 Dec 2021, 7:19 pm Liam Clarke-Hutchinson, wrote: > Hi, > > I'm assuming you're using consumer groups? E.g., group.id=X > > Cheers, > > Liam > > On Mon,

Re: Huge latency at consumer side ,testing performance for production and consumption

2021-12-12 Thread Liam Clarke-Hutchinson
Hi, I'm assuming you're using consumer groups? E.g., group.id=X Cheers, Liam On Mon, 13 Dec 2021, 6:30 pm Jigar Shah, wrote: > Hello, > I am trying to test the latency between message production and message > consumption using Java Kafka-Client*(2.7.2)* library. > The configuration of

Re: New on security on Apache Kafka

2021-11-14 Thread Liam Clarke-Hutchinson
Hi Giuseppe, That class was replaced in Kafka 2.4, I think, with kafka.security.authorizer.AclAuthorizer. Cheers, Liam Clarke-Hutchinson On Sat, Nov 13, 2021 at 1:15 AM Giuseppe Ricci Sysman wrote: > Hi, > > > > I'm new on security in Apache Kafka. I have Apache Kafka

Re: topic replicas unbalanced

2021-11-10 Thread Liam Clarke-Hutchinson
> > On Wed, Nov 10, 2021 at 3:22 PM Liam Clarke-Hutchinson < > lclar...@redhat.com> > wrote: > > > Hi David, those log messages are INFO level logged to controller.log when > > the cluster starts up and selects a broker to act as a controller, or a > new > &g

Re: topic replicas unbalanced

2021-11-10 Thread Liam Clarke-Hutchinson
could be barking up an entirely wrong tree, and if anyone who understands the replica assignment algorithm better than I is reading, please do correct me! Cheers, Liam Clarke-Hutchinson On Thu, 11 Nov 2021, 5:16 am David Ballano Fernandez, < dfernan...@demonware.net> wrote: > Hi Liam

Re: Compatibility issue between kafka-client 2.4.1 and Kafka cluster 2.6.1

2021-11-10 Thread Liam Clarke-Hutchinson
Hi Davide, your inline image didn't arrive intact. Are you able to upload it to an image host and provide a link? On Wed, Nov 10, 2021 at 10:26 PM Davide Restivo wrote: > Hi, > > I'm currently facing an integration issue between two different kafka > versions and I was wondering if someone has

Re: Please add me to JIRA contributor list

2021-11-09 Thread Liam Clarke-Hutchinson
Thanks Matthias :) On Wed, 10 Nov 2021, 5:31 pm Matthias J. Sax, wrote: > Done. > > On 11/9/21 5:06 PM, Liam Clarke-Hutchinson wrote: > > Hi, > > > > My JIRA username is lclarkenz. > > > > Many thanks, > > > > Liam Clarke-Hutchinson > > > >

Please add me to JIRA contributor list

2021-11-09 Thread Liam Clarke-Hutchinson
Hi, My JIRA username is lclarkenz. Many thanks, Liam Clarke-Hutchinson

Re: topic replicas unbalanced

2021-11-09 Thread Liam Clarke-Hutchinson
Sorry forgot to mention they'll usually be under $KAFKA_DIR/logs. On Wed, 10 Nov 2021, 1:53 pm Liam Clarke-Hutchinson, wrote: > Thanks :) > > If you grep for "broker epochs cache" in the controller.log.* files, are > you seeing all of your brokers listed? > Sho

Re: topic replicas unbalanced

2021-11-09 Thread Liam Clarke-Hutchinson
s that all of your brokers are live at the time of topic creation. If their id is in that hashmap, they're alive. Cheers, Liam On Wed, Nov 10, 2021 at 1:21 PM David Ballano Fernandez < dfernan...@demonware.net> wrote: > We are using Kafka with zookeeper > > On Tue, Nov 9, 2021 at

Re: topic replicas unbalanced

2021-11-09 Thread Liam Clarke-Hutchinson
at broker > config? > > > On Tue, Nov 9, 2021 at 3:50 PM Liam Clarke-Hutchinson > > wrote: > > > Thanks David, > > > > Hmm, is the property create.topic.policy.class.name set in > > server.properties at all? > > > > Cheers, > > &

Re: topic replicas unbalanced

2021-11-09 Thread Liam Clarke-Hutchinson
admin API from > confluent kafka python. > The same happened for both. > > thanks! > > On Tue, Nov 9, 2021 at 2:58 PM Liam Clarke-Hutchinson > > wrote: > > > Hi David, > > > > What tool(s) are you using to create new topics? Is it the > kafka-topics.sh

Re: topic replicas unbalanced

2021-11-09 Thread Liam Clarke-Hutchinson
Hi David, What tool(s) are you using to create new topics? Is it the kafka-topics.sh that ships with Apache Kafka? Cheers, Liam Clarke-Hutchinson On Wed, Nov 10, 2021 at 11:41 AM David Ballano Fernandez < dfernan...@demonware.net> wrote: > Hi All, > Trying to figure out why my

Re: Spark Streams vs Kafka Streams

2021-04-28 Thread Liam Clarke-Hutchinson
Spark Structured Streaming has some significant limitations compared to Kafka Streams. This one has always proved hard to overcome: "Multiple streaming aggregations (i.e. a chain of aggregations on a streaming DF) are not yet supported on streaming Datasets." On Thu, 29 Apr. 2021, 8:13 am

Re: Kafka Connect: producer idempotence after increasing producer.max.in.flight.requests.per.connection

2021-04-23 Thread Liam Clarke-Hutchinson
everything is happy in your cluster, network etc., you won't see immediate negative effects on idempotence when increasing that property. But when the cluster/network/etc. is heavily loaded, then you'll start to see the negative effects. Does that make sense? Kind regards, Liam Clarke-Hutchinson

Re: Which book to read?

2021-04-12 Thread Liam Clarke-Hutchinson
bus ride, but gives a great description of the log-based architecture LinkedIn built around Kafka, and was instrumental in convincing me, and my bosses(!) that Kafka would be an ideal backbone for our data streams in my previous company. Cheers, Liam Clarke-Hutchinson On Tue, Apr 13, 2021 at 2:23

Re: Kafka Definitive guide v2 states auto.leader.rebalance.enable = true is not recommended

2021-04-12 Thread Liam Clarke-Hutchinson
Ah, thanks Todd :) Was it causing issues back in the day of consumer rebalances always being stop the world? I was wondering if the statement had perhaps predated the cooperative / stick assignors we're able to run now. Cheers, Liam Clarke-Hutchinson On Tue, Apr 13, 2021 at 2:34 AM Todd

Kafka Definitive guide v2 states auto.leader.rebalance.enable = true is not recommended

2021-04-12 Thread Liam Clarke-Hutchinson
s were preferable, but in my very brief Google didn't see any advice to set auto.leader.rebalance.enabled to false to use those tools. So yeah, just curious if this rings any bells. Cheers, Liam Clarke-Hutchinson

Re: Kafka Connect Distributed Mode Issues

2021-04-06 Thread Liam Clarke-Hutchinson
he same issue. > > is it related to the source connecter(file pulse in my case). It is > scanning around 20K files and stuck. With smaller scan directory, it is > properly running. > > On Mon, Apr 5, 2021 at 2:52 PM Liam Clarke-Hutchinson < > liam.cla...@adscale.co.nz> wrot

Re: Kafka Connect Distributed Mode Issues

2021-04-05 Thread Liam Clarke-Hutchinson
or source connector, response times from the underlying data source/store can impact performance, so you may also need to look into that aspect also. Cheers, Liam Clarke-Hutchinson On Thu, 1 Apr. 2021, 5:26 pm Himanshu Shukla, wrote: > Hi, > I am using kafka-connect-file-pulse connector and sc

Re: Strictly one rebalancing when scaling a consumer group to a Random number on kubernetes.

2021-03-29 Thread Liam Clarke-Hutchinson
Hi Mazzen, Have you looked into incremental cooperative rebalancing? It may help with your issues, at least it can avoid stop the world rebalances. https://www.confluent.io/blog/incremental-cooperative-rebalancing-in-kafka/ Cheers, Liam Clarke On Mon, 29 Mar. 2021, 8:04 pm Mazen Ezzeddine

Re: Error in Kafka property file contains no connector type

2021-03-12 Thread Liam Clarke-Hutchinson
isk. Any and all responsibility for any > loss, damage or destruction of data or any other property which may arise > from relying on this email's technical content is explicitly disclaimed. > The author will in no case be liable for any monetary damages arising from > such loss, damage

Re: Error in Kafka property file contains no connector type

2021-03-11 Thread Liam Clarke-Hutchinson
Hi Mich, Your bigquery-sink.properties file is in a JSON format - which won't work. It needs to follow the usual format of a Java properties file. Kind regards, Liam Clarke-Hutchinson On Fri, Mar 12, 2021 at 12:13 AM Mich Talebzadeh wrote: > Hi, > > > Trying to stream from Kaf

Re: options for kafka cluster backup?

2021-03-07 Thread Liam Clarke-Hutchinson
As Ryanne said, MM2 "syncs" offsets - in that it maintains a mapping of "cluster A offsets" to "cluster B offsets" in cluster B, so if you have to move a consumer group from A to B, you can relatively easily point the consumer group at the offsets on B that map to its offsets on A. On Mon, Mar

Re: Window Store

2021-02-18 Thread Liam Clarke-Hutchinson
t; Also when the user is inactive for a 10 min period then send a special > event that marks the user as inactive. I'm trying to implement the special > event here. > > Thanks > > > On Tue, Feb 16, 2021 at 1:18 AM Liam Clarke-Hutchinson < > liam.cla...@adscale.co.nz> w

Re: Window Store

2021-02-16 Thread Liam Clarke-Hutchinson
On Mon, Feb 15, 2021 at 1:42 AM Liam Clarke-Hutchinson < > liam.cla...@adscale.co.nz> wrote: > > > Hi Navneeth, > > > > What is the purpose of holding these user records? Is it to join against > > other streams, or emit to data storage? > > > > Cheers

Re: Window Store

2021-02-15 Thread Liam Clarke-Hutchinson
Hi Navneeth, What is the purpose of holding these user records? Is it to join against other streams, or emit to data storage? Cheers, Liam Clarke-Hutchinson On Mon, 15 Feb. 2021, 9:08 pm Navneeth Krishnan, wrote: > Hi All, > > I have a question about how I can use window stores t

Re: print.partition=true not working

2021-02-10 Thread Liam Clarke-Hutchinson
Hi Gilles, Looks like 2.5.0+ will do, as far as I can tell from the source, print.partition came in with changes made for KAFKA-9417 which was released as part of 2.5.0. Cheers, Liam On Thu, 11 Feb. 2021, 11:36 am Gilles Philippart, wrote: > Hi Lorenzo > > It seems to have been added only

Re: Send several Serialized Java objects under one Kafka Topic

2021-01-31 Thread Liam Clarke-Hutchinson
compatibility management. Kind regards, Liam Clarke-Hutchinson On Mon, 1 Feb. 2021, 3:49 am Peter Penzov, wrote: > Hello All, > I'm working on proof of concept for sending several Java Objects > under one Kafka Topic. More about the requirements: > > https://stackoverflow.com/que

Re: hi,guys kafka 2.7.0 builld fail, any suggestion?

2021-01-27 Thread Liam Clarke-Hutchinson
Hi, What version of Gradle? Cheers, Liam On Wed, 27 Jan. 2021, 10:35 pm felixzh, wrote: > ~/Downloads/kafka-2.7.0# gradle clean > > > > > > Configure project : > > Building project 'core' with Scala version 2.13.3 > > > > > FAILURE: Build failed with an exception. > > > > > * Where: > >

Re: High latency for Kafka transactions

2020-12-02 Thread Liam Clarke-Hutchinson
Hi John, The default for the C# client is actually 5ms, not that it really makes a difference. Are you able to share any of your producer code, especially around the configuration? Kind regards, Liam Clarke On Thu, Dec 3, 2020 at 5:01 PM John Coleman wrote: > Hi, > > We

Re: Large messages max.message.bytes > message.max.bytes

2020-12-01 Thread Liam Clarke-Hutchinson
Topic limits can't override broker limits. On Tue, Dec 1, 2020 at 6:42 PM Sakke Ferraris wrote: > Hi all! > > I have questions regarding configuration for large messages. I understand > that kafka has settings for broker and topic for message max sizes; > message.max.bytes (broker config) and

Re: Reg: Max number of partitions in a topic

2020-11-25 Thread Liam Clarke-Hutchinson
post has some good ideas: https://www.confluent.io/blog/how-choose-number-topics-partitions-kafka-cluster/ Cheers, Liam Clarke On Tue, Nov 24, 2020 at 10:51 PM Gowtham S wrote: > Hi, > Can we have 1000 partitions in a Single topic? If not how many partitions > will a single topic have a

Re: Many dups received by consumer (kafka_2.13)

2020-11-25 Thread Liam Clarke-Hutchinson
Can you upgrade Kafka to 2.5.1? This problem was fixed in that release. https://issues.apache.org/jira/browse/KAFKA-9839 On Wed, Nov 25, 2020 at 9:44 PM Dev Op wrote: > Hello community! Hasn't anyone faced a similar problem? I see nobody can > give me advice on what's happening with our Kafka

Re: Kafka issue (Leaders not elected)

2020-11-23 Thread Liam Clarke-Hutchinson
to figure out more. Cheers, Liam Clarke-Hutchinson On Tue, 24 Nov. 2020, 4:15 am Mohmmad Ahmad, wrote: > Hi There, > > we are facing following issue in kafka. We have gone through some of the > references and found it as a bug from kafka side. Please let us know if > there ar

Re: Kafka Streams: SessionWindowedSerde Vs TimeWindowedSerde. Ambiguous implicit values

2020-11-19 Thread Liam Clarke-Hutchinson
That said John, nothing wrong with being explicit in code. :) On Fri, 20 Nov. 2020, 1:46 pm John Roesler, wrote: > Oh, nice. Thanks, Daniel! > > That’s much nicer than my ham-handed approach. > > Thanks, > John > > On Thu, Nov 19, 2020, at 17:44, Daniel Hinojosa wrote: > > Hope this helps, I

Re: KafkaProducer.send() blocks when metadata noch present

2020-11-02 Thread Liam Clarke-Hutchinson
Hi, So yeah, you can set the max.block.ms to 0, at the cost of perhaps some data loss and occasional noise on the console. But usual logging solution to this is to wrap the Kafka appender in an async appender with an appropriately sized buffer. Cheers, Liam Clarke On Mon, 2 Nov. 2020, 11:27

Re: multi-threaded consumer configuration like stream threads?

2020-10-27 Thread Liam Clarke-Hutchinson
; There are many possible variations on this approach. For example each > processor thread can have its own queue, and the consumer threads can hash > into these queues using the TopicPartition to ensure in-order consumption > and simplify commit. Cheers, Liam Clarke-Hutchinson On Tue, Oct 27,

Re: Kafka Naming

2020-10-20 Thread Liam Clarke-Hutchinson
Hi Jonathon, Kafka Connect is designed to, well, connect things to Kafka. Kafka Streams is for stream processing using Kafka. They're rather descriptive and apt names, don't you think? If it helps, we abbreviate Connect as KC and Streams as KStreams in our organisation. Kind regards, Liam

Re: LeaderElectionNotNeededException

2020-10-20 Thread Liam Clarke-Hutchinson
the first replica in the list, hence preferred leader for 80% of the partitions... ...and I think this incident has very much sold my team on Cruise Control. Thanks for the reply :) Liam Clarke On Tue, 20 Oct. 2020, 11:49 pm Tom Bentley, wrote: > Hi Liam, > > I think you have a misunde

Re: LeaderElectionNotNeededException

2020-10-15 Thread Liam Clarke-Hutchinson
, or in the worst case, recommendations on how to manually elect leaders for a topic-partition to get us through the weekend. Kind regards, Liam On Fri, 16 Oct. 2020, 6:22 pm Liam Clarke-Hutchinson, < liam.cla...@adscale.co.nz> wrote: > Kia ora, > > I am rather bemused by this one, I'

LeaderElectionNotNeededException

2020-10-15 Thread Liam Clarke-Hutchinson
, but what are the origins of a "LeaderElectionNotNeededException"? And for the love of God, where is the parameter in the admin client for "I significantly disagree". Kind regards, Liam Clarke-Hutchinson

Re: Number of topics to which provider sends

2020-10-14 Thread Liam Clarke-Hutchinson
, but slower. So it really depends on how you intend to use the two topics. Kind regards, Liam Clarke-Hutchinson On Thu, 15 Oct. 2020, 12:32 am Victoria Zuberman, < victoria.zuber...@imperva.com> wrote: > Hi, > > Background: Java, Kafka 2.1.0 > > I have application that sends to

Re: Kafka Size of ISR Set(3) insufficient for min.isr 2

2020-09-26 Thread Liam Clarke-Hutchinson
in the logs for brokers 1 and 2 for any ReplicaFetcher errors as a next step. Cheers, Liam Clarke-Hutchinson On Sun, 27 Sep. 2020, 5:54 pm Franz van Betteraey, wrote: > Hi all, > <https://stackoverflow.com/posts/64080819/timeline> > > I have a strange Kafka Server error w

Re: Poll Records Return Zero Records

2020-09-18 Thread Liam Clarke-Hutchinson
Hi Gowtham, that output indicates that there is no lag for the consumer group involved. What makes you think there is? On Fri, Sep 18, 2020 at 7:21 PM Gowtham S wrote: > Thanks for the reply Liam Clarke-Hutchinson, Shaohan Yin > > > Hi, what is the output of kafka-consumer-groups.s

Re: Poll Records Return Zero Records

2020-09-17 Thread Liam Clarke-Hutchinson
Hi, what is the output of kafka-consumer-groups.sh --describe for that consumer's group please? On Thu, 17 Sep. 2020, 7:37 pm Gowtham S, wrote: > Hello All, > We are consuming a topic with a single partition, the consumer.poll(1000) > returns "0" records mostly event if we have more than 1

Re: Amazon MSK Feeback

2020-09-07 Thread Liam Clarke-Hutchinson
supported version is 2.4.1. I'd suggest trialling MSK alongside an existing cluster to get some ideas of how the costs will stack up for you, to decide if it's the right path. Kind regards, Liam Clarke-Hutchinson On Mon, Sep 7, 2020 at 9:27 PM Himanshu Shukla wrote: > The reasons which I co

Re: Kafka Streams Key-value store question

2020-08-20 Thread Liam Clarke-Hutchinson
Hi Pirow, You can configure the auto offset reset for your stream source's consumer to "earliest" if you want to consume all available data if no committed offset exists. This will populate the state store on first run. Cheers, Liam Clarke-Hutchinson On Thu, 20 Aug. 2020, 11:5

Re: Quick clarification on ConsumerRecord.getOffset() and RecordMetadata.getOffset()

2020-08-17 Thread Liam Clarke-Hutchinson
Brilliant, thanks for that Matthias :) On Tue, 18 Aug. 2020, 3:07 am Matthias J. Sax, wrote: > Your understanding is correct. > > On 8/16/20 10:25 PM, Liam Clarke-Hutchinson wrote: > > Kia ora koutou katoa, > > > > Just double checking my understanding -

Quick clarification on ConsumerRecord.getOffset() and RecordMetadata.getOffset()

2020-08-16 Thread Liam Clarke-Hutchinson
understanding? Kind regards, Liam Clarke-Hutchinson

Re: Time stamp in Kafka

2020-08-15 Thread Liam Clarke-Hutchinson
One option could be to configure the topic to use log append time as the timestamp, not producer timestamp. On Sun, 16 Aug. 2020, 7:23 am Matthias J. Sax, wrote: > What is you configs? There are many configs that interact with each other. > > I did a Kafka Summit talk about this topic that may

Re: backup

2020-08-10 Thread Liam Clarke-Hutchinson
Hi Kumar, You can restore but you'll lose data since your last snapshot. I use KC -> SO instead for obvious reasons. All that said, I've never had multiple Kafka nodes fail to the extent that I need my S3 backup. But it's good to have it, for peace of mind. Thanks, Liam Clarke-Hutchin

Re: backup

2020-08-09 Thread Liam Clarke-Hutchinson
around getting your Kafka Connect workers deployed and configured correctly. But if you're looking to run a hot/warm (main/backup) cluster scenario, MM 2 is ideal. Kind regards, Liam Clarke-Hutchinson On Sun, Aug 9, 2020 at 11:56 PM Dor Ben Dov wrote: > Hi Liam, > No actual problem ju

Re: backup

2020-08-09 Thread Liam Clarke-Hutchinson
you're trying to solve, our advice can be more directed :) Kind regards, Liam Clarke-Hutchinson On Sun, Aug 9, 2020 at 11:43 PM Dor Ben Dov wrote: > Hi All, > What is the best recommended way, and tool to backup kafka in production? > Regards, > Dor > > This email and the inf

Re: kafka per topic metrics

2020-07-15 Thread Liam Clarke-Hutchinson
pics and export metrics for all of them? > > On Thu, Jul 16, 2020 at 10:04 AM Liam Clarke-Hutchinson < > liam.cla...@adscale.co.nz> wrote: > > > Whoops, just spotted a typo - the second $1 in the above snippet should > of > > course be $2. > > > > On Thu, J

Re: kafka per topic metrics

2020-07-15 Thread Liam Clarke-Hutchinson
Whoops, just spotted a typo - the second $1 in the above snippet should of course be $2. On Thu, Jul 16, 2020 at 4:33 PM Liam Clarke-Hutchinson < liam.cla...@adscale.co.nz> wrote: > Hi Pushkar, > > There are broker side metrics for messages in / bytes in / bytes out per > topic

Re: kafka per topic metrics

2020-07-15 Thread Liam Clarke-Hutchinson
gating rule to collate all the per-consumer apps into a per-consumer-group metric, unless the per consumer granularity is of interest to you: https://prometheus.io/docs/practices/rules/ Hope that helps, Kind regards, Liam Clarke-Hutchinsons On Thu, 16 Jul. 2020, 3:46 pm Pushkar Deole, wrote: &g

Re: Consumer Groups Describe is not working

2020-07-08 Thread Liam Clarke-Hutchinson
Hi Ann, It's common practice in many Spark Streaming apps to store offsets external to Kafka. Especially when checkpointing is enabled. Are you sure that the app is committing offsets to Kafka? Kind regards, Liam Clarke On Thu, 9 Jul. 2020, 8:00 am Ann Pricks, wrote: > Hi Rica

Re: NotEnoughReplicasException: The size of the current ISR Set(2) is insufficient to satisfy the min.isr requirement of 3

2020-07-07 Thread Liam Clarke-Hutchinson
Hi Nag, ISR is the replicas that are in sync with the leader, and there's a different ISR set for each partition of a given topic. If you use `kafka/bin/kafka-topics --describe --topic ` it'll show you the replicas and ISR for each partition. min.insync.replicas and replication factor are all

Re: _consumer_offsets topic produce rate is dam high

2020-06-24 Thread Liam Clarke-Hutchinson
...the classpath is required to make the formatter available to the console producer consumer... On Thu, Jun 25, 2020 at 9:44 AM Liam Clarke-Hutchinson < liam.cla...@adscale.co.nz> wrote: > To investigate, you can read the messages on the topic to figure out how > consumer groups ar

Re: _consumer_offsets topic produce rate is dam high

2020-06-24 Thread Liam Clarke-Hutchinson
c21>. You can then parse and analyse the output data using your preferred scripting language. Hope that helps, Kind regards, Liam Clarke-Hutchinson On Thu, Jun 25, 2020 at 3:25 AM Karolis Pocius wrote: > Check if any of your consumers have auto commit turned off and instead > commit after

Re: Kafka still writable when only one process available

2020-06-23 Thread Liam Clarke-Hutchinson
that makes sense? Kind regards, Liam Clarke-Hutchinson On Wed, Jun 24, 2020 at 3:22 PM Can Zhang wrote: > Hello, > > I'm doing some tests about behaviors of Kafka under faulty circumstances. > > Here are my configs(one of total 3, comments removed): > > broker.id=0 > lis

Re: How to Change number of partitions without Rolling restart?

2020-06-21 Thread Liam Clarke-Hutchinson
created topics have your desired partitions, you will need to change that property on the brokers and rolling restart. Cheers, Liam Clarke-Hutchinson On Mon, Jun 22, 2020 at 4:16 PM sunil chaudhari wrote: > Manoj, > You mean I have execute this command manually for all 350 Topics w

Re: How to Change number of partitions without Rolling restart?

2020-06-21 Thread Liam Clarke-Hutchinson
Hi Sunil, The broker setting num.partitions only applies to automatically created topics (if that is enabled) at the time of creation. To change partitions for a topic you need to use kafka-topics.sh to do so for each topic. Kind regards, Liam Clarke-Hutchinson On Mon, Jun 22, 2020 at 3:16 AM

Re: Highwater mark interpretation

2020-06-21 Thread Liam Clarke-Hutchinson
prevents consuming. Cheers, Liam Clarke-Hutchinson On Sun, 21 Jun. 2020, 2:08 pm Nag Y, wrote: > Thanks D C. Thanks a lot . That is quite a detailed explanation. > If I understand correctly, ( ignoring the case where producers > create transactions) - since the replica is down and ne

Stuck replicas - can't remove them

2020-06-14 Thread Liam Clarke-Hutchinson
and C, but the reassignment request fails. It's causing issues in that our alerting on under-replicated partitions keeps picking up partition 10 as being underreplicated. Any ideas on how to convince the cluster to discard the replica on broker A? Kind regards, Liam Clarke-Hutchinson

Re: Kafka - how to know whether it is broker property or topic property or producer property

2020-06-14 Thread Liam Clarke-Hutchinson
one or more --config options. Hope this helps :) Cheers, Liam Clarke-Hutchinson On Sun, Jun 14, 2020 at 6:48 PM Nag Y wrote: > Is it documented somewhere the property is shared or we need to look it in > multiple places ? > > Thanks > > On Sun, Jun 14, 2020 at 12:15 PM L

Re: Kafka - how to know whether it is broker property or topic property or producer property

2020-06-14 Thread Liam Clarke-Hutchinson
Hi Nag, If topic and brokers share the same property, then it is safe to assume that the broker property is the default, which can be overridden by explicit topic configs. Kind regards, Liam Clarke On Sun, Jun 14, 2020 at 6:42 PM Nag Y wrote: > I am going through the documentation and of

  1   2   3   >