Re: Kafka rebalancing - assignement of Kafka consumers to partitions

2020-10-12 Thread Shaohan Yin
Hi, If you are using the official Java clients: (1) Partition assignments are performed on the client side. You could check the interface named ConsumerPartitionAssignor or PartitionAssignor ( deprecated in 2.4 ) for customized partition assignments. (2) You could implement the ConsumerPartitionA

Re: is there a way to do foldLeft with KafkaStreams?

2020-10-12 Thread Matthias J. Sax
Isn't `fold` an aggregation? Thus, you can use `KStream#groupByKey().aggregate(...)` ? -Matthias On 10/12/20 9:45 AM, Dumitru-Nicolae Marasoui wrote: > The join operation is tempting as a way to obtain the "current fold > state" to which each message is folded into. I mean joining the source >

Re: is there a way to do foldLeft with KafkaStreams?

2020-10-12 Thread Dumitru-Nicolae Marasoui
The join operation is tempting as a way to obtain the "current fold state" to which each message is folded into. I mean joining the source topic with folded topic as a way to have in the same function call both the current message to fold and the current state of the fold.But then each new "curren

is there a way to do foldLeft with KafkaStreams?

2020-10-12 Thread Dumitru-Nicolae Marasoui
Hello kafka community, When I need to compute something that in regular programming in Scala or Haskell would be a fold, how can it be done in Kafka-Streams? The join operation is tempting as a way to obtain the "current fold state" to which each message is folded into. But then the results need

Kafka rebalancing - assignement of Kafka consumers to partitions

2020-10-12 Thread Mazen Ezzeddine
When a new Kafka consumer joins/leaves a consumer group, Kafka runtime triggers a rebalancing process so that a new assignment/mapping of partitions to the new set of consumers is performed. I kindly have three questions on the rebalancing process: (1) Is it possible to plug in somehow a custom

Re: Reverse-Proxy and Kafka

2020-10-12 Thread Ulf Lilleengen
On Thu, Oct 8, 2020 at 11:48 PM Mario Lafleur wrote: > Hi, we want to route Kafka producer connection thru a reverse-proxy. > Is this possible? > > Hi Mario, There is support for the Kafka protocol in Envoy Proxy that you can try: https://www.envoyproxy.io/docs/envoy/latest/configuration/listene

Re: Intended behavior when a broker loses its log volume

2020-10-12 Thread Tom Bentley
Hi Peter, When an unexpected IOException happens when accessing a file in a log directory, the broker will take that log directory offline. That means follower fetchers for partitions on that log dir will be stopped, the broker will stop serving requests from those logs and a notification is sent