Apache nifi Nifi-FetchSFTP-移动文件失败

Apache nifi Nifi-FetchSFTP-移动文件失败,apache-nifi,Apache Nifi,运行FetchSFTP处理器时,我遇到以下错误: FetchSFTP。。。已成功获取…的内容。。。但由于没有此类文件或目录,无法重命名远程文件。 远程文件=${path}/${filename} 完成策略=移动文件 移动目标目录=${path}/archive 创建目录已设置为true 处理器运行时-存档文件夹已成功创建,但由于某些原因,${path}中的文件不会移动。我不知道这是怎么回事。是否有人对如何正确设置有任何见解 来自nifi-app.log的堆栈跟踪: 2019-09-29 14:1

运行FetchSFTP处理器时,我遇到以下错误:

FetchSFTP。。。已成功获取…的内容。。。但由于没有此类文件或目录,无法重命名远程文件。

远程文件=
${path}/${filename}

完成策略=移动文件

移动目标目录=
${path}/archive

创建目录已设置为true

处理器运行时-存档文件夹已成功创建,但由于某些原因,
${path}
中的文件不会移动。我不知道这是怎么回事。是否有人对如何正确设置有任何见解

来自nifi-app.log的堆栈跟踪:

2019-09-29 14:16:50,680 INFO [NiFi Web Server-24] o.a.n.c.s.StandardProcessScheduler Starting ListSFTP[id=6e2e653d-016d-1000-adc1-0798a2954bf1]
2019-09-29 14:16:50,836 INFO [Timer-Driven Process Thread-3] o.a.n.c.s.TimerDrivenSchedulingAgent Scheduled ListSFTP[id=6e2e653d-016d-1000-adc1-0798a2954bf1] to run with 1 threads
2019-09-29 14:16:51,023 INFO [Flow Service Tasks Thread-2] o.a.nifi.controller.StandardFlowService Saved flow controller org.apache.nifi.controller.FlowController@6cde8b83 // Another save pending = false
2019-09-29 14:16:52,716 INFO [NiFi Web Server-24] o.a.n.c.s.StandardProcessScheduler Starting FetchSFTP[id=7d54bd06-016d-1000-1115-ae6da53c9412]
2019-09-29 14:16:52,841 INFO [Timer-Driven Process Thread-7] o.a.n.c.s.TimerDrivenSchedulingAgent Scheduled FetchSFTP[id=7d54bd06-016d-1000-1115-ae6da53c9412] to run with 1 threads
2019-09-29 14:16:53,263 INFO [Flow Service Tasks Thread-2] o.a.nifi.controller.StandardFlowService Saved flow controller org.apache.nifi.controller.FlowController@6cde8b83 // Another save pending = false
2019-09-29 14:16:54,952 WARN [Timer-Driven Process Thread-7] o.a.nifi.processors.standard.FetchSFTP FetchSFTP[id=7d54bd06-016d-1000-1115-ae6da53c9412] Successfully fetched the content for StandardFlowFileRecord[uuid=15c80199-8055-420c-b6ed-b949b3fcfb2a,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1569766614296-1, container=default, section=1], offset=0, length=37],offset=0,name=test.txt,size=37] from [FTP_SITE:FTP_PORT]/[FILE_PATH]/test.txt but failed to rename the remote file due to java.io.FileNotFoundException: No such file or directory:
java.io.FileNotFoundException: No such file or directory
    at org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:682)
    at org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:332)
    at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
    at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1162)
    at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:209)
    at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
    at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
    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:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
更新(2019-09-30 21:55)
我在SFTPTransfer中找到了重命名块。已更新错误以回显源位置和目标位置。源位置看起来很好。。。但是目标位置是
C:\${path}\${filename}
(在Windows服务器上运行Nifi) 我要看看我是否能找到它被调用的位置,看看它是否能被纠正

更新(2019-10-01 22:00)
NiFi V.1.9.2
刚刚更新到1.10.0快照 我会看看我是否能重新编译标准nar并得到结果

更新(2019-10-2008:25)

V.1.10.0-SNAPSHOT
也在做同样的事情。尝试将其发送到
C:\
位置,同时反转
/

是否可以显示nifi-app.log中与异常相关的stracktrace?编辑-nifi-app.log中的堆栈跟踪导致异常添加2-打开跟踪日志记录并能够提取异常本身这很有帮助,NiFi的哪个版本?用NiFi版本更新帖子