Support Questions
Find answers, ask questions, and share your expertise

Why multiple nifi instances on the same host share the same Nifi flow?

Contributor

I installed NIFI in two separate location nifi and nifi2 with different ports - one without kerberized ZK and one with kerberized ZK. However, both web UI (8080 and 9080) see the same nifi flow graphs.

How could they share the same internal database such as H2?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Why multiple nifi instances on the same host share the same Nifi flow?

The flow you see in the UI comes from the conf directory flow.xml.gz, unrelated to the H2 database. If you installed two NiFi instances you should have two completely separate directories like /opt/nifi1 and /opt/nifi2, each with their own conf sub-directories, each with their own flow.xml.gz.

If you had an existing NiFi instance with a flow, and then copied that directory to nifi2, it would start with the same flow, but from there if you made changes to either they should be separate.

View solution in original post

2 REPLIES 2

Re: Why multiple nifi instances on the same host share the same Nifi flow?

Contributor

# H2 Settings

nifi.database.directory=./database_repository nifi.h2.url.append=;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE

Is something to be added here?

Re: Why multiple nifi instances on the same host share the same Nifi flow?

The flow you see in the UI comes from the conf directory flow.xml.gz, unrelated to the H2 database. If you installed two NiFi instances you should have two completely separate directories like /opt/nifi1 and /opt/nifi2, each with their own conf sub-directories, each with their own flow.xml.gz.

If you had an existing NiFi instance with a flow, and then copied that directory to nifi2, it would start with the same flow, but from there if you made changes to either they should be separate.

View solution in original post