Slackbot
06/20/2023, 8:31 PMRyan Plessner
06/20/2023, 9:07 PMkafka Input Format. You can definitely get headers and stuff. I don't think it will automatically use the kafka timestamp as the timestamp field, but you could probably make that work with a transformspec. https://druid.apache.org/docs/latest/development/extensions-core/kafka-ingestion.html#kafka-input-format-supervisor-spec-exampleSergio Ferragut
06/20/2023, 9:33 PMkafka.timestampJRob
06/21/2023, 1:17 AMJRob
06/21/2023, 1:18 AMJRob
06/21/2023, 1:20 AMindex_parallel like a sucker!Sergio Ferragut
06/21/2023, 1:22 AMJRob
06/21/2023, 2:51 PM"inputFormat": {
"type": "json"
}
With the example from the documentation:
"inputFormat": {
"type": "kafka",
"headerLabelPrefix": "kafka.header.",
"timestampColumnName": "kafka.timestamp",
"keyColumnName": "kafka.key",
"headerFormat": {
"type": "string"
},
"keyFormat": {
"type": "json"
},
"valueFormat": {
"type": "json"
},
"findColumnsFromHeader": false
}
Unfortunately when I do this it breaks the UI in 0.23 (it doesn't know how to parse it as kafka format). I also notice kafka is not a valid Input format on the "Parse data" tab in 0.23.
I pushed it through but I just get errors:
org.apache.druid.java.util.common.parsers.ParseException: Unable to parse row [fb5d5708-6a51-4334-afd7-217e1f61ecd2] (Record: 1, Line: 1)
So I might have to upgrade my version of Druid before I try this again 😞Ryan Plessner
06/21/2023, 3:08 PMSergio Ferragut
06/21/2023, 4:00 PM