Skip to content

Commit

Permalink
fix: produce example
Browse files Browse the repository at this point in the history
  • Loading branch information
wrussell1999 authored Jul 8, 2024
1 parent 25bae41 commit a1baf69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/io/kestra/plugin/kafka/Produce.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@
"id: send_message_to_kafka",
"namespace: company.team",
"inputs:",
" - type: FILE",
" id: file",
" - id: file",
" type: FILE",
" description: A CSV file with columns: id, username, tweet, and timestamp.",
"",
"tasks:",
" - id: csv_to_ion",
" type: io.kestra.plugin.serdes.csv.CsvToIon",
" from: \"{{ inputs.file }}\"",
"",
" - id: ion_to_avro_schema",
" type: io.kestra.plugin.scripts.nashorn.FileTransform",
" from: \"{{ outputs.csvReader.uri }}\"",
Expand All @@ -86,9 +87,10 @@
" }",
" };",
" row = result",
"",
" - id: avro_to_kafka",
" type: io.kestra.plugin.kafka.Produce",
" from: \"{{ outputs.fileTransform.uri }}\"",
" from: \"{{ outputs.ion_to_avro_schema.uri }}\"",
" keySerializer: STRING",
" properties:",
" bootstrap.servers: localhost:9092",
Expand Down

0 comments on commit a1baf69

Please sign in to comment.