Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Nifi failed to start web server (shutting down) during DocGenerator.generate()

Apache-Nifi v-1.7.1 was running fine on AWS Centos machine but now on restart it thrown following error: (below content of /nifi-app.log)

            org.apache.nifi:nifi-standard-nar:1.7.1 || ./work/nar/extensions/nifi-standard-nar-1.7.1.nar-unpacked
    org.apache.nifi.processors.standard.FetchSFTP
            org.apache.nifi:nifi-standard-nar:1.7.1 || ./work/nar/extensions/nifi-standard-nar-1.7.1.nar-unpacked
    org.apache.nifi.processors.azure.eventhub.ConsumeAzureEventHub
            org.apache.nifi:nifi-azure-nar:1.7.1 || ./work/nar/extensions/nifi-azure-nar-1.7.1.nar-unpacked
    === End Processor types ===
2019-01-21 10:07:15,987 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down.
java.lang.NullPointerException: null
    at org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:62)
    at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:835)
    at org.apache.nifi.NiFi.<init>(NiFi.java:157)
    at org.apache.nifi.NiFi.<init>(NiFi.java:71)
    at org.apache.nifi.NiFi.main(NiFi.java:292)
2019-01-21 10:07:15,987 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server...
2019-01-21 10:07:15,988 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
like image 463
Zubair Avatar asked Jan 21 '19 10:01

Zubair


Video Answer


2 Answers

I ran into this issue when the folders pointed to by nifi.nar.library.directory.* was inaccessible, e.g. the Symbolic links were no longer valid due to file system changes.

Fixed the links and the server came up.

like image 193
Jerome Green Avatar answered Oct 17 '22 23:10

Jerome Green


sudo chown -R nifi:nifi /opt/nifi/
sudo service nifi start 

worked for me.

like image 45
Zubair Avatar answered Oct 17 '22 23:10

Zubair