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

flow file not detecting on start


I copied flow.xml.gz in the conf directory and restarted the nifi. It is not detecting it. Don't know what goes wrong here. And the big thing is there is not such error in nifi-app.log and nifi-bootstrap.log file. What can we do?

I am sure flow.xml.gz is not corrupted as the same file is working if I upload it in the other instance of nifi. Is there any difference while running nifi as service or as process( start).


Hello @Kapil Kaushik!
Did you check the path for the flow file of this specific node? If not, could you check with the following steps?

#First identify where is the location of your being used by nifi process
[root@node2 ~]# ps -ef | grep -i
nifi     1319462 1319414  4 Sep07 ?        06:23:51 /usr/jdk64/jdk1.8.0_112/bin/java -classpath /usr/hdf/current/nifi/conf:/usr/hdf/current/nifi/lib/javax.servlet-api-3.1.0.jar:/usr/hdf/current/nifi/lib/jcl-over-slf4j-1.7.25.jar:/usr/hdf/current/nifi/lib/nifi-nar-utils- -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Dambari.metrics.collector.url=http://node4:6188/ws/v1/timeline/metrics -Djava.awt.headless=true -XX:+UseG1GC -Dnifi.bootstrap.listen.port=45115 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/var/log/nifi org.apache.nifi.NiFi -K /usr/hdf/current/nifi/conf/sensitive.key
#Then let's check the config which says where's the flow.xml.gz should be
[root@node2 ~]# cat /usr/hdf/current/nifi/conf/ | grep -i flow.xml
After getting the path used for the flow.xml, try to replace it with your healthy flow.xml.gz.
Hope this helps!