Platinum ⭐️⭐️⭐️
Jun 22, 2022 11:12 PM UTC
Decompressing nested ZIP files in NiFi
- Oct 5, 2026 8:47 AM UTC
- 2 replies
- 3324 views
- Translate All
This has been a recurring question in the Community forum. I replied to those a few times so I've decided to post the answer here as an article so that's easier to find and reference.
The question is: if you have a ZIP file that contains other ZIP files (which may in turn contain other ZIP files, etc.), how can I extract all the ZIP files, recursively, using NiFi?
One way to do that is to implement the following data flow:

The RouteOnAttribute processor checks the file name and if it's a ZIP file it sends it for unpacking. Otherwise sends the non-zip file downstream.

You can find the flow definition attached below.
HTH,
André

