Member since
12-13-2020
3
Posts
0
Kudos Received
0
Solutions
12-15-2020
03:10 AM
Attached is the workflow we are trying. we have 3 files in the source directory. - req.json - a.csv - b.csv 1. ListFile processor -> To get list of all the files in the source directory. 2. RouteOnAttribute -> Route req.json fle to left. a.csv and b.csv to right. 3. Notify -> when the req.json is received. notify it. 4. Wait -> waiting for req.json availabilty. 5. FetchFile -> on success of Wait, Fetch File a.csv. 6. PutFile -> write file req.json and a.csv to the target directory. Now, the problem here is - FetchFile is forwarding only req.json and not a.csv. How can we resolve this? We want to write both the json and csv files in the target directory but only when the json file is available to us.
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
12-14-2020
09:22 AM
@justenji My usecase is: Read the files with different formats from local directory (all files from same source folder). As soon as we get a json file (else keep on waiting for a json file), forward all the files to the next processor and write them in the target folder on the basis of its format (if json format then in folder A else folder B). We have to play with all the files available in source folder but only when we have *.json file in the source folder.
... View more
12-13-2020
11:48 PM
I am working on writing a NiFi workflow and stuck in a scenario where I have to get a few files with different formats. But all the files will be routed to next processor only when we get the json file. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry