<?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: Problem with timing Elastic Queries with Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207252#M79019</link>
    <description>&lt;P&gt;You are running into &lt;A href="https://issues.apache.org/jira/browse/NIFI-3576" target="_blank"&gt;NIFI-3576&lt;/A&gt;, this will be included in the next release of NiFi (1.7.0). As a workaround, you could try a &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.MonitorActivity/index.html" target="_blank"&gt;MonitorActivity&lt;/A&gt; processor after QueryESHttp, if its Threshold Duration exceeds the Run Schedule of QueryESHttp (plus any time it would take to complete the query), then it would issue a flow file you could use to route back to QueryESHttp to try again. In this case I believe you'd need to "prime" QueryESHttp with an initial flow file.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 03:20:00 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2018-06-01T03:20:00Z</dc:date>
    <item>
      <title>Problem with timing Elastic Queries with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207251#M79018</link>
      <description>&lt;P&gt;I have a situation where I query Elasticsearch using "QueryElasticsearchHttp" to match a query then return results of the query to populate flowfile-attributes. However, if the query returns empty results it doesn't go to "failure queue". I need the results but the results are inconsistent, they may not be ready to be queried. I want it to fail so that I can "Retry at a later time" using ControlRate. However, whenever QueryElasticsearchHttp fails to find the document, it just disappears, no failure, no success queue file. The flowfile disappears.&lt;/P&gt;&lt;P&gt;I CANNOT use FetchElasticsearchHttp because it has no property: "Target: flowfile-attributes" ( I need the flowfile content that is being queried )&lt;/P&gt;&lt;P&gt;I am really stuck now, because my results in elasticsearch are populated by a different nifi flow process, so it may not be ready to be "Queried from Elastic". That's a timing issue. I want it to try querying again later.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:12:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207251#M79018</guid>
      <dc:creator>dpexecute</dc:creator>
      <dc:date>2018-06-01T03:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timing Elastic Queries with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207252#M79019</link>
      <description>&lt;P&gt;You are running into &lt;A href="https://issues.apache.org/jira/browse/NIFI-3576" target="_blank"&gt;NIFI-3576&lt;/A&gt;, this will be included in the next release of NiFi (1.7.0). As a workaround, you could try a &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.MonitorActivity/index.html" target="_blank"&gt;MonitorActivity&lt;/A&gt; processor after QueryESHttp, if its Threshold Duration exceeds the Run Schedule of QueryESHttp (plus any time it would take to complete the query), then it would issue a flow file you could use to route back to QueryESHttp to try again. In this case I believe you'd need to "prime" QueryESHttp with an initial flow file.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:20:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207252#M79019</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-06-01T03:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timing Elastic Queries with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207253#M79020</link>
      <description>&lt;P&gt;Not sure I understand the MonitorActivity part, I would still need the flowfile-content attached so I can't use other flowfiles or split flowfiles. I mean I think I am literally stuck now waiting for 1.7. FetchElastic has no "target" and QueryElastic just seems to disappear the flowfile when no hits return. I have no way of keeping the flowfile-content binary, while I query and update its metadata. It doesn't pass empty attributes for the flowfile so I don't get to keep the flowfile. I need a way perhaps to pull out x amount of files and confirm that x amount of files were recorded, if less than x, then redo that batch of files. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 22:05:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207253#M79020</guid>
      <dc:creator>dpexecute</dc:creator>
      <dc:date>2018-06-01T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timing Elastic Queries with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207254#M79021</link>
      <description>&lt;P&gt;MonitorActivity is kind of an "inverse" processor, it does work when nothing's happened. So in your case, MonitorActivity downstream from QueryES would actually generate a flow file when none has been generated from QueryES. This in a sense emulates the behavior of NIFI-3576, by emitting a flow file where there are no query results (after X time has passed, not after the query is complete). Your original question was about empty results, I don't think this would apply when you get Y results but expect Z.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 01:28:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207254#M79021</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-06-02T01:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timing Elastic Queries with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207255#M79022</link>
      <description>&lt;P&gt;I agree with you but one problem is I am ingesting and querying millions of files so I doubt MonitorActivity will be able to keep track and also I don't find "run-schedule" option in properties of any ES/HBase processor to be accurate. E.g. Changing the run-schedule for HBase doesn't actually slow down the ingest much at all probably due to batch sizes.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 22:30:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-with-timing-Elastic-Queries-with-Nifi/m-p/207255#M79022</guid>
      <dc:creator>dpexecute</dc:creator>
      <dc:date>2018-06-04T22:30:00Z</dc:date>
    </item>
  </channel>
</rss>

