- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
deleteHDFS to remove empty folders within folders
- Labels:
-
Apache NiFi
-
HDFS
Created ‎05-13-2022 03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a deleteHDFS after a getHDFS processor which removes files older than a certain time period. The getHDFS removes the file no problem, but what I have after is folders within folders that are empty, so I am using a deleteHDFS just after that, that uses the $path attribute - but I then need to specify the folder that contains that $path as I already told the getHDFS processor where to look to expire files - so I use a $custom_path attribute for where to look and add the $path variable to the deleteHDFS processor, but it only deletes the last folder. Is there a way to tell the deleteHDFS processor to delete the $path and keep the $custom_path? Currently in the deleteHDFS processor I have the Path set to: ${custom_path}/${path} and Recursive set to True.
Created ‎05-16-2022 03:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@robnew ,
It would be easier if you could provide an example of what you're trying to explain.
Cheers,
André
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
