Apache nifi 某些文件的NiFi FetchFTP delete进程获取失败

Apache nifi 某些文件的NiFi FetchFTP delete进程获取失败,apache-nifi,Apache Nifi,NiFi版本1.5 我使用FetchFTP,配置如下: Hostname: x.x.x.x port: 21 username: yyy password: zzz Remote File: ${path}/${file_name} Completion Strategy: Delete File Run Schedule: 5 sec FetchFTP处理了50个文件,其中只有46个文件从FTP服务器上成功删除。 处理器立即在日志文件中显示以下错误消息: 2019-11-20 23:33:2

NiFi版本1.5

我使用FetchFTP,配置如下:

Hostname: x.x.x.x
port: 21
username: yyy
password: zzz
Remote File: ${path}/${file_name}
Completion Strategy: Delete File
Run Schedule: 5 sec
FetchFTP处理了50个文件,其中只有46个文件从FTP服务器上成功删除。 处理器立即在日志文件中显示以下错误消息:

2019-11-20 23:33:25,542 WARN [Timer-Driven Process Thread-6] o.a.nifi.processors.standard.FetchFTP FetchFTP[id=53ee29a5] Successfully fetched the content for StandardFlowFileRecord[uuid=8ec8219e,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=15742604, container=default, section=175], offset=49, length=598026],offset=0,name=20191118145221190.pdf,size=598026] from x.x.x.x:21/<folder>/20191118145221190.pdf but failed to remove the remote file due to java.io.IOException: Failed to remove file /<folder>/20191118145221190.pdf due to 550 The process cannot access the file because it is being used by another process. 
2019-11-20 23:33:25542警告[Timer Driven Process Thread-6]o.a.nifi.processors.standard.FetchFTP FetchFTP[id=53ee29a5]成功获取了StandardFlowFileRecord[uuid=8ec8219e,claim=StandardContentClaim[resourceClaim=StandardResourceClaim[id=15742604,container=default,section=175],offset=49,length=598026]的内容,offset=0,name=20191118145221190.pdf,size=598026]从x.x.x.x:21//20191118145221190.pdf删除远程文件失败,原因是java.io.IOException:删除文件失败//20191118145221190.pdf,原因是该进程无法访问该文件,因为它正被另一个进程使用。

感谢您对此提供的帮助。

您应该检查哪个进程正在使用该文件,并检查是否存在任何权限问题。没有权限问题。如果我重新运行未处理的4个文件,我就可以删除它。我不知道抛出的确切错误消息是什么。
该进程无法访问该文件,因为它正被另一个进程使用。