<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question apache-nifi application not accessible from localhost:8080/nifi from inside container in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/401836#M251329</link>
    <description>&lt;P&gt;I am getting the following error. I have populated nifi.properties and bootstrap.conf using configmaps as mentioned below&lt;/P&gt;&lt;P&gt;-------&lt;BR /&gt;2025-02-11 06:48:50,240 ERROR [main] org.apache.nifi.runtime.Application Start Server failed&lt;BR /&gt;java.lang.IllegalStateException: Application Properties loading failed&lt;BR /&gt;at org.apache.nifi.runtime.PropertiesProvider.readProperties(PropertiesProvider.java:65)&lt;BR /&gt;at org.apache.nifi.runtime.Application.startServer(Application.java:121)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:78)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:60)&lt;BR /&gt;at org.apache.nifi.NiFi.main(NiFi.java:42)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException: null&lt;BR /&gt;at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:115)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:580)&lt;BR /&gt;at org.apache.nifi.runtime.PropertiesProvider.readProperties(PropertiesProvider.java:63)&lt;BR /&gt;... 4 common frames omitted&lt;BR /&gt;Caused by: java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "flowConfigurationFile" is null&lt;BR /&gt;at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:157)&lt;BR /&gt;at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)&lt;BR /&gt;at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)&lt;BR /&gt;... 6 common frames omitted&lt;BR /&gt;2025-02-11 06:48:50,243 WARN [main] org.apache.nifi.web.server.JettyServer Failed to stop Server&lt;BR /&gt;java.lang.NullPointerException: Cannot invoke "org.eclipse.jetty.server.Server.stop()" because "this.server" is null&lt;BR /&gt;at org.apache.nifi.web.server.JettyServer.stop(JettyServer.java:1000)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:81)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:60)&lt;BR /&gt;at org.apache.nifi.NiFi.main(NiFi.java:42)&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Using apache nifi version - NiFi 2.2.0&lt;/P&gt;&lt;P&gt;attaching my sample&amp;nbsp; deployment file&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;containers:&lt;BR /&gt;- image: nifi_2.2.0:v1&lt;BR /&gt;imagePullPolicy: IfNotPresent&lt;BR /&gt;name: nifi&lt;BR /&gt;ports:&lt;BR /&gt;- containerPort: 8080&lt;BR /&gt;protocol: TCP&lt;BR /&gt;resources:&lt;BR /&gt;limits:&lt;BR /&gt;cpu: 1500m&lt;BR /&gt;memory: 4Gi&lt;BR /&gt;requests:&lt;BR /&gt;cpu: 750m&lt;BR /&gt;memory: 2Gi&lt;BR /&gt;terminationMessagePath: /dev/termination-log&lt;BR /&gt;terminationMessagePolicy: File&lt;BR /&gt;volumeMounts:&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/conf/nifi.properties&lt;BR /&gt;name: config-volume&lt;BR /&gt;subPath: nifi.properties&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/conf/bootstrap.conf&lt;BR /&gt;name: config-volume&lt;BR /&gt;subPath: bootstrap.conf&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/flowfile_repository&lt;BR /&gt;name: nifi-flowfile&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/logs&lt;BR /&gt;name: nifi-logs&lt;BR /&gt;volumes:&lt;BR /&gt;- name: nifi-flowfile&lt;BR /&gt;persistentVolumeClaim:&lt;BR /&gt;claimName: nifi-flowfile-pvc&lt;BR /&gt;- emptyDir: {}&lt;BR /&gt;name: nifi-logs&lt;BR /&gt;- emptyDir: {}&lt;BR /&gt;name: nifi-conf&lt;BR /&gt;- configMap:&lt;BR /&gt;defaultMode: 420&lt;BR /&gt;name: nifi-config&lt;BR /&gt;name: config-volume&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;my configmap&lt;BR /&gt;apiVersion: v1&lt;BR /&gt;data:&lt;BR /&gt;bootstrap.conf: |&lt;BR /&gt;java.arg.1=-Xms512m&lt;BR /&gt;java.arg.2=-Xmx2g&lt;BR /&gt;nifi.bootstrap.class=org.apache.nifi.bootstrap.BootstrapProcess&lt;BR /&gt;nifi.properties: |&lt;BR /&gt;nifi.web.http.port=8080&lt;BR /&gt;nifi.remote.input.host=nifi-cluster&lt;BR /&gt;nifi.remote.input.secure=false&lt;BR /&gt;nifi.remote.input.socket.port=10000&lt;BR /&gt;nifi.zookeeper.connect.string=zookeeper:2181&lt;BR /&gt;nifi.nar.library.directory=/opt/nifi/nifi-current/lib&lt;BR /&gt;kind: ConfigMap&lt;BR /&gt;metadata:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;name: nifi-config&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;namespace: nifi-ns&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 10:20:13 GMT</pubDate>
    <dc:creator>nifi-srinikr</dc:creator>
    <dc:date>2025-02-11T10:20:13Z</dc:date>
    <item>
      <title>apache-nifi application not accessible from localhost:8080/nifi from inside container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/401836#M251329</link>
      <description>&lt;P&gt;I am getting the following error. I have populated nifi.properties and bootstrap.conf using configmaps as mentioned below&lt;/P&gt;&lt;P&gt;-------&lt;BR /&gt;2025-02-11 06:48:50,240 ERROR [main] org.apache.nifi.runtime.Application Start Server failed&lt;BR /&gt;java.lang.IllegalStateException: Application Properties loading failed&lt;BR /&gt;at org.apache.nifi.runtime.PropertiesProvider.readProperties(PropertiesProvider.java:65)&lt;BR /&gt;at org.apache.nifi.runtime.Application.startServer(Application.java:121)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:78)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:60)&lt;BR /&gt;at org.apache.nifi.NiFi.main(NiFi.java:42)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException: null&lt;BR /&gt;at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:115)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:580)&lt;BR /&gt;at org.apache.nifi.runtime.PropertiesProvider.readProperties(PropertiesProvider.java:63)&lt;BR /&gt;... 4 common frames omitted&lt;BR /&gt;Caused by: java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "flowConfigurationFile" is null&lt;BR /&gt;at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:157)&lt;BR /&gt;at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)&lt;BR /&gt;at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)&lt;BR /&gt;... 6 common frames omitted&lt;BR /&gt;2025-02-11 06:48:50,243 WARN [main] org.apache.nifi.web.server.JettyServer Failed to stop Server&lt;BR /&gt;java.lang.NullPointerException: Cannot invoke "org.eclipse.jetty.server.Server.stop()" because "this.server" is null&lt;BR /&gt;at org.apache.nifi.web.server.JettyServer.stop(JettyServer.java:1000)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:81)&lt;BR /&gt;at org.apache.nifi.runtime.Application.run(Application.java:60)&lt;BR /&gt;at org.apache.nifi.NiFi.main(NiFi.java:42)&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Using apache nifi version - NiFi 2.2.0&lt;/P&gt;&lt;P&gt;attaching my sample&amp;nbsp; deployment file&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;containers:&lt;BR /&gt;- image: nifi_2.2.0:v1&lt;BR /&gt;imagePullPolicy: IfNotPresent&lt;BR /&gt;name: nifi&lt;BR /&gt;ports:&lt;BR /&gt;- containerPort: 8080&lt;BR /&gt;protocol: TCP&lt;BR /&gt;resources:&lt;BR /&gt;limits:&lt;BR /&gt;cpu: 1500m&lt;BR /&gt;memory: 4Gi&lt;BR /&gt;requests:&lt;BR /&gt;cpu: 750m&lt;BR /&gt;memory: 2Gi&lt;BR /&gt;terminationMessagePath: /dev/termination-log&lt;BR /&gt;terminationMessagePolicy: File&lt;BR /&gt;volumeMounts:&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/conf/nifi.properties&lt;BR /&gt;name: config-volume&lt;BR /&gt;subPath: nifi.properties&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/conf/bootstrap.conf&lt;BR /&gt;name: config-volume&lt;BR /&gt;subPath: bootstrap.conf&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/flowfile_repository&lt;BR /&gt;name: nifi-flowfile&lt;BR /&gt;- mountPath: /opt/nifi/nifi-current/logs&lt;BR /&gt;name: nifi-logs&lt;BR /&gt;volumes:&lt;BR /&gt;- name: nifi-flowfile&lt;BR /&gt;persistentVolumeClaim:&lt;BR /&gt;claimName: nifi-flowfile-pvc&lt;BR /&gt;- emptyDir: {}&lt;BR /&gt;name: nifi-logs&lt;BR /&gt;- emptyDir: {}&lt;BR /&gt;name: nifi-conf&lt;BR /&gt;- configMap:&lt;BR /&gt;defaultMode: 420&lt;BR /&gt;name: nifi-config&lt;BR /&gt;name: config-volume&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;my configmap&lt;BR /&gt;apiVersion: v1&lt;BR /&gt;data:&lt;BR /&gt;bootstrap.conf: |&lt;BR /&gt;java.arg.1=-Xms512m&lt;BR /&gt;java.arg.2=-Xmx2g&lt;BR /&gt;nifi.bootstrap.class=org.apache.nifi.bootstrap.BootstrapProcess&lt;BR /&gt;nifi.properties: |&lt;BR /&gt;nifi.web.http.port=8080&lt;BR /&gt;nifi.remote.input.host=nifi-cluster&lt;BR /&gt;nifi.remote.input.secure=false&lt;BR /&gt;nifi.remote.input.socket.port=10000&lt;BR /&gt;nifi.zookeeper.connect.string=zookeeper:2181&lt;BR /&gt;nifi.nar.library.directory=/opt/nifi/nifi-current/lib&lt;BR /&gt;kind: ConfigMap&lt;BR /&gt;metadata:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;name: nifi-config&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;namespace: nifi-ns&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/401836#M251329</guid>
      <dc:creator>nifi-srinikr</dc:creator>
      <dc:date>2025-02-11T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: apache-nifi application not accessible from localhost:8080/nifi from inside container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/401870#M251339</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123957"&gt;@nifi-srinikr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The exception you shared is complaining about a null value for the "&lt;SPAN&gt;flowConfigurationFile":&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "flowConfigurationFile" is null&lt;/LI-CODE&gt;&lt;P&gt;On NiFi startup NiFi will check if the flow configuration file that NiFi is configured to use exists. If it does not, NiFi will create it.&amp;nbsp; In your case it appears this property is null and this the if exists check is failing.&lt;BR /&gt;&lt;BR /&gt;The configuration file location and filename is specified by this property in the nifi.properties file:&lt;BR /&gt;&lt;SPAN&gt;nifi.flow.configuration.file=&amp;lt;path to&amp;gt;/flow.xml.gz&amp;nbsp; (Apache NiFi 1.x releases)&lt;BR /&gt;or&amp;nbsp;&lt;BR /&gt;nifi.flow.configuration.file=&amp;lt;path to&amp;gt;/flow.json.gz&amp;nbsp; (Apache NiFi 2.x releases)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;What version of Apache NiFi are you using?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow and trhive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 17:34:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/401870#M251339</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-02-11T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: apache-nifi application not accessible from localhost:8080/nifi from inside container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/403483#M252080</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123957"&gt;@nifi-srinikr&lt;/a&gt;,&amp;nbsp;Did the response help resolve your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:59:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-application-not-accessible-from-localhost-8080/m-p/403483#M252080</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2025-03-04T09:59:07Z</dc:date>
    </item>
  </channel>
</rss>

