Produce
yaml
type: "io.kestra.plugin.pulsar.produce"
Examples
yaml
id: produce
namespace: company.team
inputs:
- type: FILE
id: file
tasks:
- id: csv_reader
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ inputs.file }}"
- id: file_transform
type: io.kestra.plugin.scripts.nashorn.FileTransform
from: {{ outputs.csv_reader.uri }}"
script: |
var result = {
"key": row.id,
"value": {
"username": row.username,
"tweet": row.tweet
},
"eventTime": row.timestamp,
"properties": {
"key": "value"
}
};
row = result
- id: produce
type: io.kestra.plugin.pulsar.Produce
from: "{{ outputs.file_transform.uri }}"
uri: pulsar://localhost:26650
serializer: JSON
topic: test_kestra
Properties
from *Requiredobject
serializer *Requiredstring
Default
STRING
Possible Values
STRING
JSON
BYTES
topic *Requiredstring
uri *Requiredstring
accessMode string
Possible Values
Shared
Exclusive
ExclusiveWithFencing
WaitForExclusive
authenticationToken string
compressionType string
Possible Values
NONE
LZ4
ZLIB
ZSTD
SNAPPY
encryptionKey string
producerName string
producerProperties object
SubType string
schemaString string
schemaType string
Default
NONE
Possible Values
NONE
AVRO
JSON