<?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 Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166362#M53808</link>
    <description>&lt;P&gt;Michal&lt;/P&gt;&lt;P&gt;The NiFi's convention is to look at attribute -&amp;gt; system-property -&amp;gt; env-variable - in that order. Basically what it means that if it can't find attribute in the FlowFile it will check for system property with the same name and if it can't find one it goes to env-variable etc. &lt;/P&gt;&lt;P&gt;Is that what you were looking for? Basically you can declare sys-prop or env-variable and have inbound processors like ConsumeKafka or GetFile to be more dynamic.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 22:48:58 GMT</pubDate>
    <dc:creator>ozhurakousky</dc:creator>
    <dc:date>2017-02-08T22:48:58Z</dc:date>
    <item>
      <title>NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166360#M53806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to make my downstream Process Group read from another one, where I would like to store some parameters (let's say in UpdateAttribute processor)&lt;/P&gt;&lt;P&gt;The problem is that my 2nd Process Group has two flows that start with processors that do not accept upstream connections (Get File, Consume Kafka).&lt;/P&gt;&lt;P&gt;Challenge is - how to make Get File read Input Directory property from, lets say, ${dirName} declared somewhere upstream (is it possible?) or globally? How to make Consume Kafka read Topic Name from ${topicName} declared somewhere upstream or globally? etc.&lt;/P&gt;&lt;P&gt;Is there any processor when I can declare some global parameters without having to connect it with the other Process Groups?&lt;/P&gt;&lt;P&gt;Thanks, Michal&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:43:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166360#M53806</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-02-08T22:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166361#M53807</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15525/michalrudko.html" nodeid="15525"&gt;@Michal R&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'd recommend to have a look at the variable registry:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html" target="_blank"&gt;https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please note that this is only for processor properties supporting expression language, and that, at the moment, properties are loaded when NiFi starts. You cannot change the values while NiFi is running but variable registry will evolve in the near future.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:48:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166361#M53807</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-08T22:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166362#M53808</link>
      <description>&lt;P&gt;Michal&lt;/P&gt;&lt;P&gt;The NiFi's convention is to look at attribute -&amp;gt; system-property -&amp;gt; env-variable - in that order. Basically what it means that if it can't find attribute in the FlowFile it will check for system property with the same name and if it can't find one it goes to env-variable etc. &lt;/P&gt;&lt;P&gt;Is that what you were looking for? Basically you can declare sys-prop or env-variable and have inbound processors like ConsumeKafka or GetFile to be more dynamic.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:48:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166362#M53808</guid>
      <dc:creator>ozhurakousky</dc:creator>
      <dc:date>2017-02-08T22:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166363#M53809</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt; thanks for the tip - that will probably do the job for some of the properties. The problem is that the upstream PG ("A") with all this configuration details is supposed to be re-usable (so that the downstream PG ("B") would remain static - it would just read the parameters). I mean, ideally I would like to have different A's that go to B: A1 -&amp;gt; B, A2 -&amp;gt; B, ... running at the same time. The difference between A1 and A2 would be that A1 has Input Dir = /foo/bar and A2 Input Dir = /brown/fox etc. So in general instances of PG "A" would only be a store of arguments for a call of "B" PG.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:21:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166363#M53809</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-02-08T23:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166364#M53810</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/410/ozhurakousky.html"&gt;ozhurakousky&lt;/A&gt; thanks for the tip - I rather need something that I could flexibly change without having to restart NiFi. It looks like the only way to provide properties to ConsumeKafka or GetFile is via system properties. I might need to find some workaround for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:26:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166364#M53810</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-02-08T23:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - how to declare and read global properties? (Get File, Consume Kafka)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166365#M53811</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/5078/pvillard.html"&gt;@Pierre Villard&lt;/A&gt; OK, thanks a lot for the link once again - the article was very useful, although it's a shame that changes to custom properties are made just as NiFi gets restarted. This limits the use cases for this functionality.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 02:32:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-how-to-declare-and-read-global-properties-Get-File/m-p/166365#M53811</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-02-11T02:32:40Z</dc:date>
    </item>
  </channel>
</rss>

