<?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: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105892#M42375</link>
    <description>&lt;P&gt;That worked great! Thank you very much! My collection now has over 1300 records as expected.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2016 01:08:21 GMT</pubDate>
    <dc:creator>crackerbarrel</dc:creator>
    <dc:date>2016-10-01T01:08:21Z</dc:date>
    <item>
      <title>Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105888#M42371</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8151-testingsqlflow.jpg"&gt;testingsqlflow.jpg&lt;/A&gt;I have a query that I execute using ExecuteSQL processor that returns 900 rows of data. It Output is in AVRO format which I convert to JSON (one JSON document per row of data) using ConvertAVROtoJSON processor. The output is then sent to a PutMongo processor. But, only the first row from this processor is written to MongoDB. The others are not written and I get get no errors. Any suggestion on how to make sure all rows are written into MongoDB?&lt;/P&gt;&lt;P&gt;I have attached a diagram of the Nifi flow.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 06:13:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105888#M42371</guid>
      <dc:creator>crackerbarrel</dc:creator>
      <dc:date>2016-09-30T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105889#M42372</link>
      <description>&lt;P&gt;Are you sure that only the first record was written? The NiFi doc says ConvertAvrotoJson converts to a single JSON object. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 21:03:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105889#M42372</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-09-30T21:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105890#M42373</link>
      <description>&lt;P&gt;Yes, the query returns over 1300 rows. The ConverttoJSON writes both to MongoDB and to a file (using PutFile). The file gets all the rows - one json document per line. But, MongoDB gets only one record which is the first one. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 21:34:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105890#M42373</guid>
      <dc:creator>crackerbarrel</dc:creator>
      <dc:date>2016-09-30T21:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105891#M42374</link>
      <description>&lt;P&gt;Try replacing your ConvertAvrotoJSON with a SplitAvro processor. So try a flow like this:&lt;/P&gt;&lt;P&gt;ExecuteSQL &amp;gt; SplitAvro &amp;gt; ConvertAvrotoJSON &amp;gt; PutMongo&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 23:09:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105891#M42374</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-09-30T23:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105892#M42375</link>
      <description>&lt;P&gt;That worked great! Thank you very much! My collection now has over 1300 records as expected.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 01:08:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105892#M42375</guid>
      <dc:creator>crackerbarrel</dc:creator>
      <dc:date>2016-10-01T01:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: ExecuteSQL returns multiple rows of data, but only one entry is written to MongoDB database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105893#M42376</link>
      <description>&lt;P&gt;Sweet. Glad I could help.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 01:40:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-ExecuteSQL-returns-multiple-rows-of-data-but-only-one/m-p/105893#M42376</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-10-01T01:40:36Z</dc:date>
    </item>
  </channel>
</rss>

