Reputation: 161
In Apache NiFi, using FetchS3Object to read from an S3 bucket, I see it can reads all the object in bucket and as they are added. Is it possible:
NiFi seems great, just missing examples in their documentation for atleast the popular processors.
Upvotes: 7
Views: 9209
Reputation: 250
Use GetSQS and fetchS3Object processor and configure your GETSQS processor to listen for notification for newly added file. It's a event driven approach as whenever a new file comes SQS queue sends notification to nifi. Use below link to get full clarifications: AWS-NIFI integration
Upvotes: 2
Reputation: 11931
Another approach would be to configure your S3 bucket to send SNS notifications, subscribe an SQS queue. NiFi would read from the SQS queue to receive the notifications, filter objects of interest, and process them.
See Monitoring An S3 Bucket in Apache NiFi for more on this approach.
Upvotes: 2
Reputation: 11931
A combination of ListS3 and FetchS3Object processors will do this:
${s3.bucket}
and Object Key property to ${filename}
.Upvotes: 9