Support Questions

Find answers, ask questions, and share your expertise

apache nifi error

avatar
Explorer

WARN [Timer-Driven Process Thread-5] o.a.nifi.processors.standard.TailFile TailFile[id=d9905c06-016d-1000-0000-00007f2bf97e] Unable to open file /cygdrive/Windows/System32/LogFiles/Firewall/pfirewall.log; will attempt to access file again after the configured Yield Duration has elapsed: java.nio.file.NoSuchFileException: /cygdrive/Windows/System32/LogFiles/Firewall/pfirewall.log: {} java.nio.file.NoSuchFileException: /cygdrive/Windows/System32/LogFiles/Firewall/pfirewall.log at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) at java.nio.channels.FileChannel.open(FileChannel.java:287) at java.nio.channels.FileChannel.open(FileChannel.java:335) at org.apache.nifi.processors.standard.TailFile.createReader(TailFile.java:1003) at org.apache.nifi.processors.standard.TailFile.processTailFile(TailFile.java:677) at org.apache.nifi.processors.standard.TailFile.onTrigger(TailFile.java:599) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1122) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2019-10-17 23:42:04,862 DEBUG [Timer-Driven Process Thread-5] o.a.nifi.processors.standard.TailFile TailFile[id=d9905c06-016d-1000-0000-00007f2bf97e] has chosen to yield its resources; will not be scheduled to run again for 1000 milliseconds

1 REPLY 1

avatar
Master Mentor

@koshay 

 

This error is telling you that the user running the NiFi process is unable to see that file.

...java.nio.file.NoSuchFileException

If the file really does exist at "/cygdrive/Windows/System32/LogFiles/Firewall/pfirewall.log", then the issue is more likely permissions on one of the directories in that path preventing the NiFi java process user from being able traverse that directory tree to the log file. 

 

If the NiFi Java process user was able to traverse that entire directory tree, we would expect a different error related to permissions on the log file.

 

Hope this helps,

Matt