Support Questions

Find answers, ask questions, and share your expertise

Can someone help me in writing a custom processor, which Gets the file from FTP and moves it to another location on same FTP server.

avatar

Current solution is to use ListFTP and then route it using FetchFTP. But we are having some issues ListFTP as it maintains State. Problem here is, The file comes in part by part it doesn't meet the regular expression, and finally when the complete file is present, it would have been already listed in the state so we end up not picking them. Hence I'm seeking community help to write a custom processor where one processor does both the work of fetching and moving the file. I'm also not in favour of GetFTP, since it doesn't have move option. I'm using nifi-1.1.2

1 ACCEPTED SOLUTION

avatar

Moderators, This question can be closed. I wrote a custom code merging GetFTP and FetchFTP. Thanks,

View solution in original post

1 REPLY 1

avatar

Moderators, This question can be closed. I wrote a custom code merging GetFTP and FetchFTP. Thanks,