Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Hello, how do I configure the PutMongo processor to perform an update on a mongodb collection? The following error occurs. NiFi version I use: NiFi 1.7.1

85531-error.png

4 REPLIES 4
Highlighted

Re: Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Super Guru
@Julio Gazeta

As you are having Mode property value as Update and also

Change the Upsert property value to

true //When true, inserts a document if no document matches the update query criteria; this property is valid only when using update mode, otherwise it is ignored

85532-upsert.png

For more details regards to updating the docs refer to this and this links.

Highlighted

Re: Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Shu, the error below occurs after the change to True.

85533-erro1.png

Highlighted

Re: Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Shu, the error below occurs after the change to True.

83556-erro1.png

Highlighted

Re: Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

Explorer

I am also facing the same issue of not able to update mongo records using exiting _id . I just need to update 2-3 fields in existing mongo document

Don't have an account?
Coming from Hortonworks? Activate your account here