Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
81 views

Kafka-python doesn't see kafka-headers, while kafka golang does. It doesn't see any headers in all the messages. Example of code: for message in consumer: # message value and key are raw bytes -- ...
Irina's user avatar
  • 1,417
1 vote
0 answers
24 views

I'm working on a Kafka-based pipeline using Python (kafka-python) where I have two separate consumers: consumer.py tracks user health factors from the topic aave-raw → uses group_id="risk-dash-...
Prajwal Khot's user avatar
0 votes
2 answers
167 views

My consumers are inherited from the BasicKafkaConsumerV2. During deployments when the pods are rotating I am missing few messages which is visible from the offsets printed after the manual commit(). ...
Dev's user avatar
  • 567
0 votes
0 answers
76 views

On a local network, I have a broker at cgw.local and a client at rpi.local, connected to the same switch. No matter what I put into kafka.advertised.listeners: PLAINTEXT://cgw.local:9092 or PLAINTEXT:/...
scriptfoo's user avatar
  • 513
0 votes
1 answer
45 views

I have two kafka broker (S1/S2) with the config below, and by default all my topics produce in one partition only. default.replication.factor=2 min.insync.replicas=1 offsets.topic.replication.factor=2 ...
ing's user avatar
  • 1
0 votes
1 answer
230 views

consumer_SASL = KafkaConsumer(topics, bootstrap_servers=kafkaBrokers, group_id=group, security_protocol='...
Aditya's user avatar
  • 53
0 votes
0 answers
979 views

Goal The goal is to create a Snowflake stored procedure that consumes messages from a Kafka topic once per day, processes these messages, and then loads the processed data into Snowflake tables for ...
Evangelos Malandrakis's user avatar
0 votes
1 answer
136 views

I have a problem while trying to make a data flux between a class called AD_Drone and another called AD_Engine. Engine has to produce for every drone connected their final position, after that, Drone ...
Saúl Campello Mas's user avatar
0 votes
1 answer
550 views

After multiple attempt I am not able to decode the error thrown by fastavro library when validating data against the schema.Below is what I am getting File "fastavro\\_validation.pyx", line ...
Deepak_Spark_Beginner's user avatar
-1 votes
1 answer
125 views

How to run python script running when django server starts. For example, I have a python kafka script , this script should be running continously when django server starts. when i give two commands in ...
Sugunanayak Darbe's user avatar
0 votes
1 answer
223 views

My task is to count messages in Kafka topics (some with one partition, some with many partitions). I tried two techniques: one with subscribe() and other with assign(). Full code: #!/usr/bin/env ...
Michał Niklas's user avatar
0 votes
0 answers
218 views

For test purposes I have to read all messages in some kafka topics. Before test I remove all messages using /kafka-delete-records.sh then I run tests that fill kafka topics. After test I want to ...
Michał Niklas's user avatar
1 vote
1 answer
146 views

I need to have a kafka producer and 4 consumers in python that balancing queue. My Topic bash code: kafka-topics --bootstrap-server localhost:9092 --create --topic numbers --partitions 4 --...
Ali Esmaeili's user avatar
0 votes
1 answer
459 views

I want to write my Kafka messages to a jsonl file which should each contain a number of lines (let's say 2). My producer currently writes 3 messages at a time so I should get two jsonl files: one with ...
Omega's user avatar
  • 881
1 vote
1 answer
1k views

I am trying to import: from kafka import KafkaConsumer from kafka import KafkaProducer but I am getting this error ImportError: cannot import name 'IncompatibleBrokerVersion' from 'kafka.errors'. I ...
user2540646's user avatar
0 votes
1 answer
427 views

I'm using python 3.9.16 and kafka-python version 2.0.2. I'm running on my Macbook Pro IOS 11.6.5. I'm still getting my feet wet with Kafka so it's entirely possible I'm doing things the wrong way. ...
Classified's user avatar
  • 6,100
0 votes
1 answer
150 views

How does Kafka store messages on a local server or laptop? I'm new to Kafka and just playing around with the tech for now but I'm curious to the answer because I started by looking at the Kafka ...
Classified's user avatar
  • 6,100
0 votes
1 answer
3k views

I have downloaded Kafka and installed kafka-python library using "pip install kafka-python" and "conda install -c conda-forge kafka-python". I am able to run "from kafka ...
SHIVANI SINGH's user avatar
0 votes
0 answers
17 views

I have a kafka consumer in VSCode IDE (MS Windows) that works properly. I take the same python script in docker container, but the kafka broker is not recognized. I put them inside the same network; ...
FSH's user avatar
  • 1
1 vote
1 answer
1k views

I can't seem to figure out how to mock the instantiation of a class, any pointers would be greatly appreciated. Here is what I am trying to do: I would like to test the method ClassA.some_method() and ...
jimfawkes's user avatar
  • 385
4 votes
1 answer
5k views

Introduction I am currently experimenting with Kafka and FastAPI and trying to build a template to enable me to quickly write programs in a microservice pattern. Goal - Vision Building a repository of ...
mm117's user avatar
  • 91
0 votes
1 answer
94 views

Wrote two functions, 1. uploads a gzip file to Artifactory and 2. listens to the Kafka topic. As further steps, wanted to validate whether the upload is successful within 5 minutes by listening to the ...
Goku's user avatar
  • 544
0 votes
0 answers
16 views

I have a container in the same docker-compose that is trying to connect to my broker. It suddenly stopped connecting and is resulting with error: 2023-02-22 14:24:00 ERROR:kafka.conn:Connect attempt ...
LauraAlice's user avatar
0 votes
1 answer
930 views

I'm missing events when reading from a Kafaka queue because the consumer is updating the offset without an explicit commit even when enable_auto_commit is disabled. from kafka import KafkaClient, ...
Gree Tree Python's user avatar
0 votes
1 answer
428 views

I have an application with the need to pass messages into multiple layers of processing. I need to do this because all the new messages should be put into the first generic topic so they can be ...
Firouziam's user avatar
  • 805

1
2 3 4 5
10