<?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: Fetch records from Cassandra on need basis with filter parameters. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297660#M218801</link>
    <description>&lt;P&gt;Great, thanks a lot&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 08:55:43 GMT</pubDate>
    <dc:creator>VINODTV</dc:creator>
    <dc:date>2020-06-09T08:55:43Z</dc:date>
    <item>
      <title>Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297446#M218696</link>
      <description>&lt;P&gt;I have a use case to read data from Cassandra where I provide inputs from outside NIFI[Flink Job], also instead of querying the given data for the scheduled time intervals, can we initiate the fetch whenever needed? Is these two use cases are possible with current NIFI system?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 09:59:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297446#M218696</guid>
      <dc:creator>VINODTV</dc:creator>
      <dc:date>2020-06-05T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297482#M218717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78727"&gt;@VINODTV&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I think you can try to have notification based trigger for Cassandra query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To receive notification request (to trigger your flow) you can have a HandleHTTPRequest processor listening on particular port, and once request is received you can take that data (from http req body) and build your cassandra query based on the received data and execute it (May be using QueryCassandra processor).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Jenkins or any other tool you can notify that above service (listener) by invoking the specific url with data which you want to pass for query.&lt;BR /&gt;&lt;BR /&gt;Jenkins Job [Invoke &lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;optionalURI&amp;gt;&lt;/A&gt;&amp;nbsp;with data] --&amp;gt; Request received at Listener [HandleHTTPRequest] --&amp;gt; Prepare Query --&amp;gt; Execute Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below curl command can be used to notify listener from Jenkins :&lt;/P&gt;&lt;P&gt;curl -d '&lt;EM&gt;my input data for cassandra query&lt;/EM&gt;'&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;optionalURI&amp;gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can refer for more detail on HTTP Listener configurations&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297344#M218652" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297344#M218652&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please ACCEPT the solution if it helps/resolves your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mahendra&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 15:44:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297482#M218717</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2020-06-05T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297616#M218789</link>
      <description>&lt;P&gt;Hi Mahendra, thanks for the suggestions,&amp;nbsp; this seems like I can not use Input port to receive in NIFI, Also can you help me with how can I transfer the parameter example "Emp No" in where clause of cassandra query in Query casandra?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 05:11:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297616#M218789</guid>
      <dc:creator>VINODTV</dc:creator>
      <dc:date>2020-06-09T05:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297627#M218796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78727"&gt;@VINODTV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Nifi input/output ports are for connecting processor groups.&lt;BR /&gt;&lt;BR /&gt;You can pass your attribute (emp id) from Jenkins as header or http request body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you receive your parameter value to NiFi as header then you can just use one UpdateAttribute to prepare your query with parameter (header) received in header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-09 at 12.52.08 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27922i79872AD2A1FE7BF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-09 at 12.52.08 PM.png" alt="Screenshot 2020-06-09 at 12.52.08 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use above prepared attribute 'cqlSelectQuery' as 'CQL select query' in QueryCassandra processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-09 at 12.50.02 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27923i956919610FDFA817/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-09 at 12.50.02 PM.png" alt="Screenshot 2020-06-09 at 12.50.02 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you receiving your parameter (emp id) to Nifi in request body as json (along with other parameters may be),&lt;BR /&gt;Then you need to use EvaluateJson processor just before UpdateAttribute so that you can pull that emp id value from flowfile content to attribute and then use it in UpdateAttribute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 07:31:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297627#M218796</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2020-06-09T07:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297631#M218797</link>
      <description>&lt;P&gt;Nice solution this is what I was looking for, thanks. Query Cassandra designed to invoke in given scheduled time intervals right, Is there any way we can disable it because I need to fetch the value from Cassandra whenever the request comes from outside with the given employee id.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 07:44:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297631#M218797</guid>
      <dc:creator>VINODTV</dc:creator>
      <dc:date>2020-06-09T07:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297652#M218800</link>
      <description>&lt;P&gt;Leave the schedule configurations to default, it runs whenever you send flow file to that processor, i.e whenever you receive request on HTTP listener it will get triggered -&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-09 at 2.19.00 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27926iABE95CC17C349410/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-09 at 2.19.00 PM.png" alt="Screenshot 2020-06-09 at 2.19.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 08:50:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297652#M218800</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2020-06-09T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch records from Cassandra on need basis with filter parameters.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297660#M218801</link>
      <description>&lt;P&gt;Great, thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 08:55:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-records-from-Cassandra-on-need-basis-with-filter/m-p/297660#M218801</guid>
      <dc:creator>VINODTV</dc:creator>
      <dc:date>2020-06-09T08:55:43Z</dc:date>
    </item>
  </channel>
</rss>

