subprocess
|
This component is in beta. Its behavior might change in a future release. |
Executes a command, runs it as a subprocess, and consumes messages from it over stdout.
Messages are consumed according to a specified codec. The command is executed once and if it terminates the input also closes down gracefully. Alternatively, the field restart_on_close can be set to true in order to have Redpanda Connect re-execute the command each time it stops.
The field max_buffer defines the maximum message size able to be read from the subprocess. This value should be set significantly above the real expected maximum message size.
The execution environment of the subprocess is the same as the Redpanda Connect instance, including environment variables and the current working directory.
-
Common
-
Advanced
input:
label: ""
subprocess:
name: "" # No default (required)
args: []
codec: lines
restart_on_exit: false
input:
label: ""
subprocess:
name: "" # No default (required)
args: []
codec: lines
restart_on_exit: false
max_buffer: 65536