Description:

Sends the contents of a FlowFile as a message to Apache Kafka

Additional Details...

Tags: Apache, Kafka, Put, Send, Message, PubSub

Properties:

In the list below, the names of required properties appear in bold. Anyother properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language (or simply EL), and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDescriptionDefault ValueValid ValuesELSensitive
Known BrokersA comma-separated list of known Kafka Brokers in the format <host>:<port>NoNo
Topic NameThe Kafka Topic of interestYesNo
Kafka KeyThe Key to use for the MessageYesNo
Delivery GuaranteeSpecifies the requirement for guaranteeing that a message is sent to Kafka0
  • 0
  • 1
  • -1
NoNo
Message DelimiterSpecifies the delimiter to use for splitting apart multiple messages within a single FlowFile. If not specified, the entire content of the FlowFile will be used as a single message. If specified, the contents of the FlowFile will be split on this delimiter and each section sent as a separate Kafka message.YesNo
Max Buffer SizeThe maximum amount of data to buffer in memory before sending to Kafka1 MBNoNo
Communications TimeoutThe amount of time to wait for a response from Kafka before determining that there is a communications error30 secsNoNo
Client NameClient Name to use when communicating with KafkaNiFi-nullNoNo

Relationships:

NameDescription
failureAny FlowFile that cannot be sent to Kafka will be routed to this Relationship
successAny FlowFile that is successfully sent to Kafka will be routed to this Relationship