I have been trying to add the Flow versions data into a mongodb cluster. I wanted to understand if the metadata syncrhonization could also be stored to a mongodb and instead of providing the default h2 driver, could I provided a mongodb driver. If yes is there some other interface I need to implement other than MetadataAwareFlowPersistenceProvider. Or I need to override the funcitons of DatabaseFlowPersistenceProvider.
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();
}
}