<?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 exposing a nifi property as env variable in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/exposing-a-nifi-property-as-env-variable/m-p/382071#M244481</link>
    <description>&lt;P&gt;Is this the correct way of exposing a nifi property as env variable(in start.sh):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;prop_replace 'nifi.web.http.port'      "${NIFI_WEB_HTTP_PORT:-8080}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I expect it to expose&amp;nbsp;nifi.web.http.port as&amp;nbsp;NIFI_WEB_HTTP_PORT, and also setting it to default value of 8080.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 07:32:05 GMT</pubDate>
    <dc:creator>manishg</dc:creator>
    <dc:date>2024-01-12T07:32:05Z</dc:date>
    <item>
      <title>exposing a nifi property as env variable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/exposing-a-nifi-property-as-env-variable/m-p/382071#M244481</link>
      <description>&lt;P&gt;Is this the correct way of exposing a nifi property as env variable(in start.sh):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;prop_replace 'nifi.web.http.port'      "${NIFI_WEB_HTTP_PORT:-8080}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I expect it to expose&amp;nbsp;nifi.web.http.port as&amp;nbsp;NIFI_WEB_HTTP_PORT, and also setting it to default value of 8080.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 07:32:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/exposing-a-nifi-property-as-env-variable/m-p/382071#M244481</guid>
      <dc:creator>manishg</dc:creator>
      <dc:date>2024-01-12T07:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: exposing a nifi property as env variable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/exposing-a-nifi-property-as-env-variable/m-p/382112#M244496</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106206"&gt;@manishg&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not clear on what you are trying to accomplish here.&amp;nbsp;&lt;BR /&gt;What is the use case?&lt;BR /&gt;What is your NiFi version?&lt;BR /&gt;What is your OS?&lt;BR /&gt;&lt;BR /&gt;NiFi does not have a "start.sh" script.&amp;nbsp; Are you talking about the "nifi.sh" script.&lt;BR /&gt;&lt;BR /&gt;Perhaps there are just some important details I am missing here.&lt;BR /&gt;also not sure why you would want to change the nifi..web.http.port configuration property in the nifi.properties file to a variable.&amp;nbsp; These properties are all read during startup of NiFi and evaluating NiFi variables is does not happen during NiFi startup.&amp;nbsp; Nor does NiFi support defining NiFi variables in the nifi.properties file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, 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 one or more 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;</description>
      <pubDate>Fri, 12 Jan 2024 15:00:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/exposing-a-nifi-property-as-env-variable/m-p/382112#M244496</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-12T15:00:27Z</dc:date>
    </item>
  </channel>
</rss>

