Processor gives error as soon as we start the flow

our flow s => generateFF->updateAttribute->getMongo
getting below exception

Caused by: java.lang.IllegalArgumentException: The connection string is invalid. Connection strings must start with 'mongodb://' at com.mongodb.ConnectionString.<init>(ConnectionString.java:203) at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:176) at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:158) at org.apache.nifi.processors.mongodb.AbstractMongoProcessor.createClient(AbstractMongoProcessor.java:191)

we set mongoURI in "updateAttribute" and we see it in ff attribute too. and in getMongo we are putting URI as => ${mongo_uri}

Issue is, processor gives error as soon as we start the flow, even before ff reached to processor. If processor allows expression language, shouldn't it wait for ff to reach it, so that we can use some type of expression?

are we missing something? or URI has to be hard coded?

Tagged:
Sign In or Register to comment.