Kafka Get Messages Activity
The Kafka Get Messages activity consumes messages from Kafka Topics. It returns available messages based on specified poll iterations and max poll records configuration. The activity also allows you to seek partition offset to beginning, end or custom offset value.
General
On the General tab, specify the required parameters before using this activity. The General tab has the following fields:
Field | Literal Value/ Process Property/ Module Property? | Description |
---|---|---|
Name | None | The name to be displayed as the label for the activity in the process. |
Kafka Connection | Yes | The Kafka connection resource for communicating with a Kafka server instance. |
Group ID | Yes | The group ID for the consumer group. |
Topic Names | Yes | The topic name where Kafka cluster stores streams of record. Multiple topic names are supported and these topic names can be separated using a semi colon (;).
For example, topicName1;topicName2 |
Assign Custom Partition | None | This is a check box to select if Partition ID needs to be entered. You can select the check box to override Kafka's default partition assignment behavior. |
Partition IDs | Yes | Sequence ID or range of the partition to which the message is received. Default is 0. Multiple partition ID's are supported using a comma separator (,).
For example, Single Topic and Single Partition Partition IDs = 0 Multiple Topics and Multiple Partitions |
Use Registry | No | This check box is available when
Avro Schema is selected in the
Key Deserializer or
Value Deserializer field.
This check box enables you to use the Avro Schema with the Schema Registry. |
Avro Encoding Type | Yes | This field is available when the Avro Schema is selected in the
Key Deserializer or
Value Deserializer field and the
Use Registry check box is not enabled.
For more information on the Avro Encoding types, please refer to Avro documentation. |
Key Deserializer | No | Class for the key that implements the serializer interface. |
Key Avro Schema File | Yes | This field is available when
Avro Schema is selected in the
Key Deserializer field and the
Use Registry check box is not enabled.
Specifies the path to the .avsc file which contains the avro schema to be used. Select the file through the resource picker. |
Value Deserializer | No | Value for the serializer interface. |
Value Avro Schema File | Yes | This field is available when
Avro Schema is selected in the
Value Deserializer field and the
Use Registry check box is not enabled.
Specifies the path to the .avsc file which contains the avro schema to be used. Select the file through the resource picker provided. |
Poll Iterations | Yes | The number of times Kafka Get Message activity executes poll() method.
The default value is 3. |
Fetch Timeout (msec) | Yes | The time in milliseconds spent waiting in poll if data is not available in the buffer. Used as an input to the poll() method.
The default value is 10000. |
Max Poll Records | Yes |
Maximum number of poll records returned in a single poll() operation. The default value is 500. |
Advanced
The following table describes the Advanced tab of the Get Messages activity.
Input
The following table describes the fields on the Input tab of the Get Messages activity.
Output
The following table describes the fields on the Output tab.