简体   繁体   English

Apache Nifi - 在没有任何下游处理器的情况下运行 getFile 处理器时会发生什么

[英]Apache Nifi - What happens when you run getFile processor without any downstream processor

I am a beginner to Apache Nifi and i want to move a file in my local filesystem from one location to another.我是 Apache Nifi 的初学者,我想将本地文件系统中的文件从一个位置移动到另一个位置。 When I used the getFile processor to move files from the corresponding input directory and started it, the file disappeared.当我使用getFile处理器从相应的输入目录移动文件并启动它时,文件消失了。 I haven't connected it to a putFile processor.我还没有将它连接到 putFile 处理器。 What exactly is happening here.这里到底发生了什么。 Where does the file go if it disappears from the local directory i had placed it in. Also how can i get it back?如果文件从我放置它的本地目录中消失了,它会去哪里。另外,我怎样才能把它找回来?

GetFile has a property Keep Source File , if you have set to true , the file is not deleted after it has been copied from Input Directory to the Content Repository, default is false so this is the reason your files are deleted and you must have set success relation for auto termination otherwise GetFile won't run without any downstream connection. GetFile有一个属性Keep Source File ,如果您已设置为true ,则该文件在从Input Directory复制到 Content Repository 后不会被删除,默认为false所以这就是您的文件被删除的原因,您必须设置自动终止的success关系,否则在没有任何下游连接的情况下GetFile将无法运行。 Your files have been discarded.您的文件已被丢弃。 Not sure whether this will work, but try the Data Provenance option and replay content.不确定这是否有效,但请尝试使用数据来源选项并重播内容。

Have a look at this - GetFile Official Doc and Replaying a FlowFile看看这个 - GetFile 官方文档重放 FlowFile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM