Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Move file to some other location after reading it using GetFile Processor

avatar
Contributor

Hi,

I am reading a file using GetFile. If I set KeepSourceFile attribute to true then it keep on reading the file so I reset it to false. After resetting it to false, it removes the file from source after reading it. Is there any way to move the file to some other location once it has been read by GetFile?

15 REPLIES 15

avatar
Contributor

@Wynner

Yes..It was stopped.

avatar

@Muhammad Umar

Was there are error? What do you see after you click Clear state?

avatar
Contributor

@Wynner

There is no error when I clear the state. When I click the "Clear State" link it removes the time-stamp etc entries below is the state after clearing:

15550-clear-state.png

Error only occurs when I run the process. And below is the error:

WARN [Timer-Driven Process Thread-7] o.a.nifi.processors.standard.ListFile ListFile[id=1ae3923c-015c-1000-15e4-e29f5b75a0e0] Error collecting attributes for file /root/InputData/, message is Mount point not found

clear-state.png

avatar

@Muhammad Umar

So, the Clear state is working.

The warning you are seeing has nothing to do with the state of the processor.

avatar
Contributor

@Wynner

Yes.. But how can I remove this warning and why its occuring?

avatar

@Muhammad Umar

What is the OS of the system? How is the partition mounted, xfs, ext4?

Is this a VM or a bare metal server?

What is returned when you run the command "mount"?