ExecuteStreamCommand 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
The ExecuteStreamCommand processor provides a flexible way to integrate external commands and scripts into NiFi data flows. ExecuteStreamCommand can pass the incoming FlowFile's content to the command that it executes similarly how piping works.
Tags
command, command execution, execute, stream
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
true
Properties
Dynamic Properties
Restrictions
Required Permission Explanation
execute code Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has.
Relationships
Name Description
output stream The destination path for the flow file created from the command's output, if the returned status code is zero.
original The original FlowFile will be routed. It will have new attributes detailing the result of the script execution.
nonzero status The destination path for the flow file created from the command's output, if the returned status code is non-zero. All flow files routed to this relationship will be penalized.
Writes Attributes
Name Description
execution.command The name of the command executed
execution.command.args The semi-colon delimited list of arguments. Sensitive properties will be masked
execution.status The exit status code returned from executing the command
execution.error Any error messages returned from executing the command
mime.type Sets the MIME type of the output if the 'Output MIME Type' property is set and 'Output Destination Attribute' is not set