Apache Niffi getMongo 处理器 [英] Apache Niffi getMongo Processor

查看:26
本文介绍了Apache Niffi getMongo 处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 niffi 的新手,我正在使用 getMongo 从 mongodb 中提取文档,但同样的结果一次又一次地出现,但查询结果只有 2 个文档,查询为 {"qty":{$gt:10}}

I am new in niffi i am using getMongo to extract document from mongodb but same result is coming again and again but the result of query is only 2 document the query is {"qty":{$gt:10}}

推荐答案

有一个类似的问题.让我引用我在那里说过的话:

There is a similar question regarding this. Let me quote what I had said there:

"GetMongo 将继续根据提供的属性(例如 Query、Projection、Limit)从 MongoDB 中提取数据.它无法跟踪执行过程,至少目前是这样.您可以做什么但是,所做的是更改 Run Schedule 和/或 Scheduling Strategy.您可以通过右键单击处理器并单击配置来找到它们.默认情况下,RunSchedule 将是 0 sec 这意味着连续运行.将其更改为 60 min 将使处理器每一小时运行一次.这仍将读取每隔一小时从 MongoDB 中重新运行一次相同的文档,但由于您提到只想运行一次,我建议采用这种方法."

"GetMongo will continue to pull data from MongoDB based on the provided properties such as Query, Projection, Limit. It has no way of tracking the execution process, at least for now. What you can do, however, is changing the Run Schedule and/or Scheduling Strategy. You can find them by right clicking on the processor and clicking Configure. By default, Run Schedule will be 0 sec which means running continuously. Changing it to, say, 60 min will make the processor run every one hour. This will still read the same documents from MongoDB again every one hour but since you have mentioned that you just want to run it only once, I'm suggesting this approach."

可以在此处找到问题.

这篇关于Apache Niffi getMongo 处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆