使用Nifi的putMongo更新修改的mongo文档的问题

时间:2018-12-16 18:47:34

标签: mongodb etl apache-nifi

Am使用Nifi的getMongo从一个mongo集合中获取记录,然后使用putMongo将它们转储到另一个中。插入新文档效果很好,但不能进行更新和更新。 putMongo update processor properties

我收到以下错误:

2018-12-16 18:39:16,882错误[计时器驱动的进程线程1] oanifi.processors.mongodb.PutMongo PutMongo [id = ac24c862-0167-1000-fd31-7fb5faacd2a6]无法执行插入StandardFlowFileRecord [uuid = xxxx-xxxx-xxxx-xxxx-xxxx,claim = StandardContentClaim [resourceClaim = StandardResourceClaim [id = 1544791602838-11,container = default,section = 11],offset = 273116,length = 115],offset = 0 ,name = 283907997607465,size = 115]由于java.lang.ClassCastException进入了MongoDB:java.lang.ClassCastException

使用更新查询键时是否存在问题?任何帮助是极大的赞赏。谢谢!

0 个答案:

没有答案