<?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: How to do row count using Nifi in source table and target table while ingestion in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194165#M68654</link>
    <description>&lt;P&gt;Here i used validation_table attribute to have the table name  in the flow file  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39580-dia2.png" style="width: 883px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18138iA6366C28C487D0C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39580-dia2.png" alt="39580-dia2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Create your own logic to count the  rows from oracle and hive .  Then merge the 2 flows using merge processor.&lt;/P&gt;&lt;P&gt;I have created a process group to count  oracle table  and another for counting hive which will add a oracle_cnt attribute and hive_cnt attribute with the result. &lt;/P&gt;&lt;P&gt;The result is merged  to a single flow file by correlating using  the co relation attribute name . Allso mention the attribute strategy as "keep all unique attribute"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39581-dia1.png" style="width: 752px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18139iF4AC236574D65D83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39581-dia1.png" alt="39581-dia1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:52:49 GMT</pubDate>
    <dc:creator>tthomas</dc:creator>
    <dc:date>2019-08-18T06:52:49Z</dc:date>
    <item>
      <title>How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194162#M68651</link>
      <description>&lt;P&gt;I am ingesting data from oracle to hive using sqoop . I want to know whether i can use nifi to  count the no of rows in oracle table is same as the no of rows in  target table after ingestion.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194162#M68651</guid>
      <dc:creator>aneena</dc:creator>
      <dc:date>2017-09-27T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194163#M68652</link>
      <description>&lt;P&gt;Sure , You can do that with MergeContent Processor .   if you are using only source and target  then you can set the processor property Min no of entries to 2 and max no of entries to 2  and also mention a correlation attribute  to do the merge. &lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:42:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194163#M68652</guid>
      <dc:creator>tthomas</dc:creator>
      <dc:date>2017-09-27T18:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194164#M68653</link>
      <description>&lt;P&gt;Can you help me with some example on how to do it &lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:46:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194164#M68653</guid>
      <dc:creator>aneena</dc:creator>
      <dc:date>2017-09-27T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194165#M68654</link>
      <description>&lt;P&gt;Here i used validation_table attribute to have the table name  in the flow file  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39580-dia2.png" style="width: 883px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18138iA6366C28C487D0C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39580-dia2.png" alt="39580-dia2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Create your own logic to count the  rows from oracle and hive .  Then merge the 2 flows using merge processor.&lt;/P&gt;&lt;P&gt;I have created a process group to count  oracle table  and another for counting hive which will add a oracle_cnt attribute and hive_cnt attribute with the result. &lt;/P&gt;&lt;P&gt;The result is merged  to a single flow file by correlating using  the co relation attribute name . Allso mention the attribute strategy as "keep all unique attribute"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39581-dia1.png" style="width: 752px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18139iF4AC236574D65D83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39581-dia1.png" alt="39581-dia1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:52:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194165#M68654</guid>
      <dc:creator>tthomas</dc:creator>
      <dc:date>2019-08-18T06:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194166#M68655</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45237/aneena.html" nodeid="45237"&gt;@Aneena Paul&lt;/A&gt; how much volume of data is being moved as part of the sqoop. IF the volume is not too high, why not simply use nifi for moving data from oracle to hive. Nifi can easily handle anything in the GB ranges for daily / hourly jobs. A simple flow would be Qeneratetablefetch -&amp;gt; RPG-&amp;gt;executesql-&amp;gt;puthdfs.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 23:34:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194166#M68655</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2017-09-27T23:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194167#M68656</link>
      <description>&lt;P&gt;This will give you provenance in nifi, which provides you with confirmation of how much data in bytes was extracted and sent to hdfs, so no need to do this additional check.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 23:35:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/194167#M68656</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2017-09-27T23:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to do row count using Nifi in source table and target table while ingestion</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/290977#M68657</link>
      <description>&lt;P&gt;Can you please post the template, I am trying to solve the same problem. It would be a great help for me&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 07:39:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-row-count-using-Nifi-in-source-table-and-target/m-p/290977#M68657</guid>
      <dc:creator>kumar993498</dc:creator>
      <dc:date>2020-03-04T07:39:15Z</dc:date>
    </item>
  </channel>
</rss>

