I have been trying to add the Flow versions data into a mongodb cluster. Wanted to understand if setting the nifi registry db properties will do the job or I need to implement a MetadataAwareFlowPersistanceProvider to intake a mongodbclient.
nifi.registry.db.url=jdbc:mongo:./database/nifi-registry-primary
nifi.registry.db.driver.class=org.MongoDriver.Driver
Class implementation of MetadataAwareFlowPersistenceProvider
public class MongoMetadaAwareFlowPersistenceProvider implements MetadataAwareFlowPersistenceProvider
MongoClient mongoClient;
public MongoMetadaAwareFlowPersistenceProvider(){
initialize();
}
public initialize(){
MongoClient mongoClient = new MongoClient();
}
}