ConsumeAzureEventHub 2025.10.9.21

Bundle

org.apache.nifi | nifi-azure-nar

Description

Receives messages from Microsoft Azure Event Hubs with checkpointing to ensure consistent event processing. Checkpoint tracking avoids consuming a message multiple times and enables reliable resumption of processing in the event of intermittent network failures. Checkpoint tracking requires external storage and provides the preferred approach to consuming messages from Azure Event Hubs. In clustered environment, ConsumeAzureEventHub processor instances form a consumer group and the messages are distributed among the cluster nodes (each message is processed on one cluster node only).

Tags

azure, cloud, eventhub, events, microsoft, streaming, streams

Input Requirement

FORBIDDEN

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Batch SizeThe number of messages to process within a NiFi session. This parameter affects throughput and consistency. NiFi commits its session and Event Hubs checkpoints after processing this number of messages. If NiFi session is committed, but fails to create an Event Hubs checkpoint, then it is possible that the same messages will be received again. The higher number, the higher throughput, but possibly less consistent.
Checkpoint StrategySpecifies which strategy to use for storing and retrieving partition ownership and checkpoint information for each partition.
Consumer GroupThe name of the consumer group to use.
Event Hub NameThe name of the event hub to pull messages from.
Event Hub NamespaceThe namespace that the Azure Event Hubs is assigned to. This is generally equal to <Event Hub Names>-ns.
Initial OffsetSpecify where to start receiving messages if offset is not yet stored in the checkpoint store.
Message Receive TimeoutThe amount of time this consumer should wait to receive the Batch Size before returning.
Prefetch Count
Record ReaderThe Record Reader to use for reading received messages. The event hub name can be referred by Expression Language ‘${eventhub.name}’ to access a schema.
Record WriterThe Record Writer to use for serializing Records to an output FlowFile. The event hub name can be referred by Expression Language ‘${eventhub.name}’ to access a schema. If not specified, each message will create a FlowFile.
Service Bus EndpointTo support namespaces not in the default windows.net domain.
Shared Access Policy KeyThe key of the shared access policy. Either the primary or the secondary key can be used.
Shared Access Policy NameThe name of the shared access policy. This policy must have Listen claims.
Storage Account KeyThe Azure Storage account key to store event hub consumer group state.
Storage Account NameName of the Azure Storage account to store event hub consumer group state.
Storage Container NameName of the Azure Storage container to store the event hub consumer group state. If not specified, event hub name is used.
Storage SAS TokenThe Azure Storage SAS token to store Event Hub consumer group state. Always starts with a ? character.
Transport TypeAdvanced Message Queuing Protocol Transport Type for communication with Azure Event Hubs
Use Azure Managed IdentityChoose whether or not to use the managed identity of Azure VM/VMSS
proxy-configuration-serviceSpecifies the Proxy Configuration Controller Service to proxy network requests.

State management

ScopesDescription
LOCALLocal state is used to store the client id. Cluster state is used to store partition ownership and checkpoint information when component state is configured as the checkpointing strategy.
CLUSTERLocal state is used to store the client id. Cluster state is used to store partition ownership and checkpoint information when component state is configured as the checkpointing strategy.

Relationships

NameDescription
successFlowFiles received from Event Hub.

Writes attributes

NameDescription
eventhub.enqueued.timestampThe time (in milliseconds since epoch, UTC) at which the message was enqueued in the event hub
eventhub.offsetThe offset into the partition at which the message was stored
eventhub.sequenceThe sequence number associated with the message
eventhub.nameThe name of the event hub from which the message was pulled
eventhub.partitionThe name of the partition from which the message was pulled
eventhub.property.*The application properties of this message. IE: ‘application’ would be ‘eventhub.property.application’