- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Does NiFi have a processor to expand a tar or zip file?
- Labels:
-
Apache NiFi
Created ‎04-12-2016 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does NiFi have a processor to expand a tar or zip file and allow access/process to files within?
Created ‎04-12-2016 01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Sunile,
I believe you are looking for the unpack content processor found here
Allowable file types:
- use mime.type attribute
- tar
- zip
- flowfile-stream-v3
- flowfile-stream-v2
- flowfile-tar-v1
Created ‎04-12-2016 01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Sunile,
I believe you are looking for the unpack content processor found here
Allowable file types:
- use mime.type attribute
- tar
- zip
- flowfile-stream-v3
- flowfile-stream-v2
- flowfile-tar-v1
Created ‎04-12-2016 02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using UnpackContent processor you can take the items out of tar or zip archives as individual flow files. Metadata about those objects will be retained on each flow file. You can then operate on those individual unpacked items to do what you need then you could if needed recombine them back into a zip or tar using the merge strategy of 'defragment'.
Created ‎04-12-2016 02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In addition to the UnpackContent processor suggested by @Chris Gambino, the CompressContent[1] processor has a "decompress" option which works on these compression formats:
- use mime.type attribute
- gzip
- bzip2
- xz-lzma2
- lzma
- snappy
- snappy framed
[1]https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.CompressContent/index.html
