First-time OLAP-er and Kafka user. Wanted to test...
# troubleshooting
t
First-time OLAP-er and Kafka user. Wanted to test Pinot for my use-case. Latest pino and kafka versions. Config snippet: "tableType": "REALTIME", ... "stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder", "stream.kafka.consumer.factory.class.name": "org.apache.pinot.core.realtime.impl.kafka2.KafkaConsumerFactory", "stream.kafka.consumer.type": "lowlevel", Kafka producer payload:
{ "studentID": 1, "name": "Natalie1" }
{ "studentID": 2, "name": "Natalie2" }
But Pino ingests the first object (with id 1) only - what gives? Seeing examples on the internet it should consume the payload in its entirety. Some config option somewhere...?
Pinot always consumes a single object from kafka payload, even if json array is given; every object must be sent as a separate message - according to ChatGPT 🙂 Is this correct?
x
for your producer payload, is it one kafka message or two? If it’s two messages with two kafka offsets, then pinot should consume them both.
this
org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder
will only decode one kafka message to one json object. If you want each kafka message is a json array and break it, then you need to amend this class or implement your own logic for this.