Nifi Moving files on HDFS path for the previous day merged json file
I have a requirement to move the previous day processed and merged json files into new hdfs path. The requirement is to recursively search unprocessed files and move the pending unprocessed files.
Path 1 → /data/nifi/working/2019/10/source_2019_10_15.json — Daily processed files are merged under this path and gets added on daily basis.
Path 2 → /data/nifi/incoming/ — The code should search if folders doesn't exist then create and move the files are just move the files if the folders are already present.
Currently, I am using nifi flow -- ListHDFS→ MoveHDFS but unable to achieve it.
Need help how this can be achieved.
Thank you for the help.

