RecordReaderFactory
Implementations: JsonPathReader
Syslog5424Reader
CSVReader
JsonTreeReader
GrokReader
ExcelReader
ParquetReader
ReaderLookup
CEFReader
WindowsEventLogReader
ProtobufReader
SyslogReader
AvroReader
XMLReader
ScriptedReader
YamlTreeReader
The Record Reader to use for reading received messages. The Kinesis Stream name can be referred to by Expression Language '${kinesis.name}' to access a schema. If Record Reader/Writer are not specified, each Kinesis Record will create a FlowFile. | Record Writer | amazon-kinesis-stream-record-writer | | Controller Service API: RecordSetWriterFactory Implementations: ScriptedRecordSetWriter ParquetRecordSetWriter RecordSetWriterLookup CSVRecordSetWriter FreeFormTextRecordSetWriter JsonRecordSetWriter AvroRecordSetWriter XMLRecordSetWriter | The Record Writer to use for serializing Records to an output FlowFile. The Kinesis Stream name can be referred to by Expression Language '${kinesis.name}' to access a schema. If Record Reader/Writer are not specified, each Kinesis Record will create a FlowFile. |
Region | Region | US West (Oregon) | - AWS GovCloud (US)
![AWS Region Code : us-gov-west-1 AWS Region Code : us-gov-west-1](../../../../../html/images/iconInfo.png) - AWS GovCloud (US-East)
![AWS Region Code : us-gov-east-1 AWS Region Code : us-gov-east-1](../../../../../html/images/iconInfo.png) - US East (N. Virginia)
![AWS Region Code : us-east-1 AWS Region Code : us-east-1](../../../../../html/images/iconInfo.png) - US East (Ohio)
![AWS Region Code : us-east-2 AWS Region Code : us-east-2](../../../../../html/images/iconInfo.png) - US West (N. California)
![AWS Region Code : us-west-1 AWS Region Code : us-west-1](../../../../../html/images/iconInfo.png) - US West (Oregon)
![AWS Region Code : us-west-2 AWS Region Code : us-west-2](../../../../../html/images/iconInfo.png) - EU (Ireland)
![AWS Region Code : eu-west-1 AWS Region Code : eu-west-1](../../../../../html/images/iconInfo.png) - EU (London)
![AWS Region Code : eu-west-2 AWS Region Code : eu-west-2](../../../../../html/images/iconInfo.png) - EU (Paris)
![AWS Region Code : eu-west-3 AWS Region Code : eu-west-3](../../../../../html/images/iconInfo.png) - EU (Frankfurt)
![AWS Region Code : eu-central-1 AWS Region Code : eu-central-1](../../../../../html/images/iconInfo.png) - EU (Zurich)
![AWS Region Code : eu-central-2 AWS Region Code : eu-central-2](../../../../../html/images/iconInfo.png) - EU (Stockholm)
![AWS Region Code : eu-north-1 AWS Region Code : eu-north-1](../../../../../html/images/iconInfo.png) - EU (Milan)
![AWS Region Code : eu-south-1 AWS Region Code : eu-south-1](../../../../../html/images/iconInfo.png) - EU (Spain)
![AWS Region Code : eu-south-2 AWS Region Code : eu-south-2](../../../../../html/images/iconInfo.png) - Asia Pacific (Hong Kong)
![AWS Region Code : ap-east-1 AWS Region Code : ap-east-1](../../../../../html/images/iconInfo.png) - Asia Pacific (Mumbai)
![AWS Region Code : ap-south-1 AWS Region Code : ap-south-1](../../../../../html/images/iconInfo.png) - Asia Pacific (Hyderabad)
![AWS Region Code : ap-south-2 AWS Region Code : ap-south-2](../../../../../html/images/iconInfo.png) - Asia Pacific (Singapore)
![AWS Region Code : ap-southeast-1 AWS Region Code : ap-southeast-1](../../../../../html/images/iconInfo.png) - Asia Pacific (Sydney)
![AWS Region Code : ap-southeast-2 AWS Region Code : ap-southeast-2](../../../../../html/images/iconInfo.png) - Asia Pacific (Jakarta)
![AWS Region Code : ap-southeast-3 AWS Region Code : ap-southeast-3](../../../../../html/images/iconInfo.png) - Asia Pacific (Melbourne)
![AWS Region Code : ap-southeast-4 AWS Region Code : ap-southeast-4](../../../../../html/images/iconInfo.png) - Asia Pacific (Tokyo)
![AWS Region Code : ap-northeast-1 AWS Region Code : ap-northeast-1](../../../../../html/images/iconInfo.png) - Asia Pacific (Seoul)
![AWS Region Code : ap-northeast-2 AWS Region Code : ap-northeast-2](../../../../../html/images/iconInfo.png) - Asia Pacific (Osaka)
![AWS Region Code : ap-northeast-3 AWS Region Code : ap-northeast-3](../../../../../html/images/iconInfo.png) - South America (Sao Paulo)
![AWS Region Code : sa-east-1 AWS Region Code : sa-east-1](../../../../../html/images/iconInfo.png) - China (Beijing)
![AWS Region Code : cn-north-1 AWS Region Code : cn-north-1](../../../../../html/images/iconInfo.png) - China (Ningxia)
![AWS Region Code : cn-northwest-1 AWS Region Code : cn-northwest-1](../../../../../html/images/iconInfo.png) - Canada (Central)
![AWS Region Code : ca-central-1 AWS Region Code : ca-central-1](../../../../../html/images/iconInfo.png) - Canada West (Calgary)
![AWS Region Code : ca-west-1 AWS Region Code : ca-west-1](../../../../../html/images/iconInfo.png) - Middle East (UAE)
![AWS Region Code : me-central-1 AWS Region Code : me-central-1](../../../../../html/images/iconInfo.png) - Middle East (Bahrain)
![AWS Region Code : me-south-1 AWS Region Code : me-south-1](../../../../../html/images/iconInfo.png) - Africa (Cape Town)
![AWS Region Code : af-south-1 AWS Region Code : af-south-1](../../../../../html/images/iconInfo.png) - US ISO East
![AWS Region Code : us-iso-east-1 AWS Region Code : us-iso-east-1](../../../../../html/images/iconInfo.png) - US ISOB East (Ohio)
![AWS Region Code : us-isob-east-1 AWS Region Code : us-isob-east-1](../../../../../html/images/iconInfo.png) - US ISO West
![AWS Region Code : us-iso-west-1 AWS Region Code : us-iso-west-1](../../../../../html/images/iconInfo.png) - Israel (Tel Aviv)
![AWS Region Code : il-central-1 AWS Region Code : il-central-1](../../../../../html/images/iconInfo.png)
| The AWS Region to connect to. |
Endpoint Override URL | Endpoint Override URL | | | Endpoint URL to use instead of the AWS default including scheme, host, port, and path. The AWS libraries select an endpoint URL based on the AWS region, but this property overrides the selected endpoint URL, allowing use with other S3-compatible endpoints. Supports Expression Language: true (will be evaluated using variable registry only) |
DynamoDB Override | amazon-kinesis-stream-dynamodb-override | | | DynamoDB override to use non-AWS deployments Supports Expression Language: true (will be evaluated using variable registry only) |
Initial Stream Position | amazon-kinesis-stream-initial-position | LATEST | - LATEST
![Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard. Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.](../../../../../html/images/iconInfo.png) - TRIM_HORIZON
![Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.](../../../../../html/images/iconInfo.png) - AT_TIMESTAMP
![Start reading from the position denoted by a specific time stamp, provided in the value Timestamp. Start reading from the position denoted by a specific time stamp, provided in the value Timestamp.](../../../../../html/images/iconInfo.png)
| Initial position to read Kinesis streams. |
Stream Position Timestamp | amazon-kinesis-stream-position-timestamp | | | Timestamp position in stream from which to start reading Kinesis Records. Required if Initial position to read Kinesis streams. is AT_TIMESTAMP. Uses the Timestamp Format to parse value into a Date.
This Property is only considered if the [Initial Stream Position] Property has a value of "AT_TIMESTAMP". |
Timestamp Format | amazon-kinesis-stream-timestamp-format | yyyy-MM-dd HH:mm:ss | | Format to use for parsing the Stream Position Timestamp into a Date and converting the Kinesis Record's Approximate Arrival Timestamp into a FlowFile attribute. Supports Expression Language: true (will be evaluated using variable registry only) |
Failover Timeout | amazon-kinesis-stream-failover-timeout | 30 secs | | Kinesis Client Library failover timeout |
Graceful Shutdown Timeout | amazon-kinesis-stream-graceful-shutdown-timeout | 20 secs | | Kinesis Client Library graceful shutdown timeout |
Checkpoint Interval | amazon-kinesis-stream-checkpoint-interval | 3 secs | | Interval between Kinesis checkpoints |
Retry Count | amazon-kinesis-stream-retry-count | 10 | | Number of times to retry a Kinesis operation (process record, checkpoint, shutdown) |
Retry Wait | amazon-kinesis-stream-retry-wait | 1 sec | | Interval between Kinesis operation retries (process record, checkpoint, shutdown) |
Report Metrics to CloudWatch | amazon-kinesis-stream-cloudwatch-flag | false | | Whether to report Kinesis usage metrics to CloudWatch. |
Communications Timeout | Communications Timeout | 30 secs | | The amount of time to wait in order to establish a connection to AWS or receive data from AWS before timing out. |
AWS Credentials Provider Service | AWS Credentials Provider service | | Controller Service API: AWSCredentialsProviderService Implementation: AWSCredentialsProviderControllerService | The Controller Service that is used to obtain AWS credentials provider |
Proxy Configuration Service | proxy-configuration-service | | Controller Service API: ProxyConfigurationService Implementation: StandardProxyConfigurationService | Specifies the Proxy Configuration Controller Service to proxy network requests. If set, it supersedes proxy settings configured per component. Supported proxies: HTTP + AuthN |
Dynamic Properties:
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|
Kinesis Client Library (KCL) Configuration property name | Value to set in the KCL Configuration property | Override default KCL Configuration properties with required values. Supports setting of values via the "with" methods on the KCL Configuration class. Specify the property to be set without the leading prefix, e.g. "maxInitialisationAttempts" will call "withMaxInitialisationAttempts" and set the provided value. Only supports setting of simple property values, e.g. String, int, long and boolean. Does not allow override of KCL Configuration settings handled by non-dynamic processor properties. Supports Expression Language: false |
Relationships:
Name | Description |
---|
success | FlowFiles are routed to success relationship |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
aws.kinesis.partition.key | Partition key of the (last) Kinesis Record read from the Shard |
aws.kinesis.shard.id | Shard ID from which the Kinesis Record was read |
aws.kinesis.sequence.number | The unique identifier of the (last) Kinesis Record within its Shard |
aws.kinesis.approximate.arrival.timestamp | Approximate arrival timestamp of the (last) Kinesis Record read from the stream |
mime.type | Sets the mime.type attribute to the MIME Type specified by the Record Writer (if configured) |
record.count | Number of records written to the FlowFiles by the Record Writer (if configured) |
record.error.message | This attribute provides on failure the error message encountered by the Record Reader or Record Writer (if configured) |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component does not allow an incoming relationship.System Resource Considerations:
Resource | Description |
---|
CPU | Kinesis Client Library is used to create a Worker thread for consumption of Kinesis Records. The Worker is initialised and started when this Processor has been triggered. It runs continually, spawning Kinesis Record Processors as required to fetch Kinesis Records. The Worker Thread (and any child Record Processor threads) are not controlled by the normal NiFi scheduler as part of the Concurrent Thread pool and are not released until this processor is stopped. |
NETWORK | Kinesis Client Library will continually poll for new Records, requesting up to a maximum number of Records/bytes per call. This can result in sustained network usage. |
See Also:
PutKinesisStream