<?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 File replication in nifi cluster, prometheus custom metric in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/File-replication-in-nifi-cluster-prometheus-custom-metric/m-p/345093#M234374</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help with below questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have &lt;STRONG&gt;nifi cluster &lt;/STRONG&gt;with 2 nodes&amp;nbsp;and running &lt;STRONG&gt;ExecuteGroovyScript&lt;/STRONG&gt;&amp;nbsp;processor to create text formatted file generated from flow data content and save it on local filesystem but it is saving file only on one &lt;STRONG&gt;nifi node&lt;/STRONG&gt;, is there any way to replicate this file on all nodes at a time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Above file formatting by&amp;nbsp;&lt;STRONG&gt;ExecuteGroovyScript &lt;/STRONG&gt;processor as text in &lt;STRONG&gt;Prometheus&lt;/STRONG&gt; format and using such flow &lt;STRONG&gt;http_request-&amp;gt; fetchfile-&amp;gt; http_response&lt;/STRONG&gt; processors to create custom&amp;nbsp;&lt;STRONG&gt;Prometheus &lt;/STRONG&gt;healthcheckmetric web page, it worked for &lt;STRONG&gt;single node&lt;/STRONG&gt; but with 2 nodes all data balanced randomly between 2 nodes so I have different content in 2 web pages ( &lt;EM&gt;&lt;A href="http://node1/healthcheck/" target="_blank" rel="noopener"&gt;http://node1/healthcheck/&lt;/A&gt; and&amp;nbsp;&lt;A href="http://node2/healthcheck/" target="_blank" rel="noopener"&gt;http://node2/healthcheck/&lt;/A&gt;&lt;/EM&gt; ) so monitoring not working properly, could you help how to add custom&amp;nbsp;&lt;STRONG&gt;Prometheus &lt;/STRONG&gt;metric so it will be available like regular nifi prometheus web page&amp;nbsp;&lt;EM&gt;/metrics/ &lt;/EM&gt;with same content on both nodes&lt;EM&gt;?&lt;/EM&gt; may be other solutions?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 08:01:24 GMT</pubDate>
    <dc:creator>Vapper</dc:creator>
    <dc:date>2022-06-07T08:01:24Z</dc:date>
    <item>
      <title>File replication in nifi cluster, prometheus custom metric</title>
      <link>https://community.cloudera.com/t5/Support-Questions/File-replication-in-nifi-cluster-prometheus-custom-metric/m-p/345093#M234374</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help with below questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have &lt;STRONG&gt;nifi cluster &lt;/STRONG&gt;with 2 nodes&amp;nbsp;and running &lt;STRONG&gt;ExecuteGroovyScript&lt;/STRONG&gt;&amp;nbsp;processor to create text formatted file generated from flow data content and save it on local filesystem but it is saving file only on one &lt;STRONG&gt;nifi node&lt;/STRONG&gt;, is there any way to replicate this file on all nodes at a time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Above file formatting by&amp;nbsp;&lt;STRONG&gt;ExecuteGroovyScript &lt;/STRONG&gt;processor as text in &lt;STRONG&gt;Prometheus&lt;/STRONG&gt; format and using such flow &lt;STRONG&gt;http_request-&amp;gt; fetchfile-&amp;gt; http_response&lt;/STRONG&gt; processors to create custom&amp;nbsp;&lt;STRONG&gt;Prometheus &lt;/STRONG&gt;healthcheckmetric web page, it worked for &lt;STRONG&gt;single node&lt;/STRONG&gt; but with 2 nodes all data balanced randomly between 2 nodes so I have different content in 2 web pages ( &lt;EM&gt;&lt;A href="http://node1/healthcheck/" target="_blank" rel="noopener"&gt;http://node1/healthcheck/&lt;/A&gt; and&amp;nbsp;&lt;A href="http://node2/healthcheck/" target="_blank" rel="noopener"&gt;http://node2/healthcheck/&lt;/A&gt;&lt;/EM&gt; ) so monitoring not working properly, could you help how to add custom&amp;nbsp;&lt;STRONG&gt;Prometheus &lt;/STRONG&gt;metric so it will be available like regular nifi prometheus web page&amp;nbsp;&lt;EM&gt;/metrics/ &lt;/EM&gt;with same content on both nodes&lt;EM&gt;?&lt;/EM&gt; may be other solutions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 08:01:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/File-replication-in-nifi-cluster-prometheus-custom-metric/m-p/345093#M234374</guid>
      <dc:creator>Vapper</dc:creator>
      <dc:date>2022-06-07T08:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: File replication in nifi cluster, prometheus custom metric</title>
      <link>https://community.cloudera.com/t5/Support-Questions/File-replication-in-nifi-cluster-prometheus-custom-metric/m-p/345115#M234383</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83065"&gt;@Vapper&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In a NiFi cluster each node executes its own copy of the flow.xml.gz, has its own set of repositories, and executes against only the FlowFiles on that specific node.&amp;nbsp; &amp;nbsp; So you need to consider this in your dataflow designs.&lt;BR /&gt;&lt;BR /&gt;Perhaps the dataflow that executes the groovy Script on all nodes could be designed to write all the produced files to a single destination server.&amp;nbsp; Then in your&amp;nbsp;&lt;STRONG&gt;http_request-&amp;gt; fetchfile-&amp;gt; http_response&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;dataflow, instead of "fetchFile" use fetchSFTP to retrieve all those files and mergeContent to merge in to one file before the http_response.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 12:45:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/File-replication-in-nifi-cluster-prometheus-custom-metric/m-p/345115#M234383</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-06-07T12:45:33Z</dc:date>
    </item>
  </channel>
</rss>

