nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James McMahon <>
Subject Re: How to reject S3 Writes if folder does not exist?
Date Fri, 17 Mar 2017 21:07:37 GMT
So keep my list in a python script dictionary called by an ExecuteScript
processor, and toss my outputTarget value against that. Set a new attribute
s3exists to true or false in my script based on that result, and then use
RouteAttribute to direct the output. Is that what you have in mind? -Jim

On Fri, Mar 17, 2017 at 4:59 PM, Adam Lamar <> wrote:

> Jim,
> Also keep in mind that as an object store, S3 uses "directories" only as a
> grouping concept, and not as a hierarchal storage mechanism. That's why the
> initial PutS3Object doesn't fail with a new "directory". See
> I think James' advice is spot on - to accomplish what you need, you'll
> likely want to keep a list of known outputTargets in NiFi.
> Cheers,
> Adam

View raw message