<?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 Change Data Capture in Databases Using Apache Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Change-Data-Capture-in-Databases-Using-Apache-Nifi/m-p/289157#M214085</link>
    <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to two different databases and the data inside them are identical:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;MemSql DB&lt;/LI&gt;
&lt;LI&gt;Postgre DB Frequently data changed&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In future, I would like to sync the data between those DBs to capture the data when its changed in the main DB which is the PostgreDB and reflect that changes in the memSql DB.&lt;/P&gt;
&lt;P&gt;Is there a way using Nifi to capture data changed in the Postgre DB and move the data changed to MemSql DB?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look forward to hearing from you soon.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 09:33:33 GMT</pubDate>
    <dc:creator>ahmedalsaidi</dc:creator>
    <dc:date>2020-02-05T09:33:33Z</dc:date>
    <item>
      <title>Change Data Capture in Databases Using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Change-Data-Capture-in-Databases-Using-Apache-Nifi/m-p/289157#M214085</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to two different databases and the data inside them are identical:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;MemSql DB&lt;/LI&gt;
&lt;LI&gt;Postgre DB Frequently data changed&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In future, I would like to sync the data between those DBs to capture the data when its changed in the main DB which is the PostgreDB and reflect that changes in the memSql DB.&lt;/P&gt;
&lt;P&gt;Is there a way using Nifi to capture data changed in the Postgre DB and move the data changed to MemSql DB?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look forward to hearing from you soon.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:33:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Change-Data-Capture-in-Databases-Using-Apache-Nifi/m-p/289157#M214085</guid>
      <dc:creator>ahmedalsaidi</dc:creator>
      <dc:date>2020-02-05T09:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Data Capture in Databases Using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Change-Data-Capture-in-Databases-Using-Apache-Nifi/m-p/289184#M214095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73830"&gt;@ahmedalsaidi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apache Nifi does not have a generic CDC processor as such. One way you can achieve a CDC like approach is to use the&amp;nbsp;&lt;SPAN&gt;QueryDatabaseTable processor. Please take a look at this article on how to use the&amp;nbsp;QueryDatabaseTable processor to do an incremental fetch of new rows in the source database:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Incremental-Fetch-in-NiFi-with-QueryDatabaseTable/ta-p/247073" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Incremental-Fetch-in-NiFi-with-QueryDatabaseTable/ta-p/247073&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alternatively, you use can use a vendor that specializes in CDC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please accept this answer as a solution if it helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 12:34:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Change-Data-Capture-in-Databases-Using-Apache-Nifi/m-p/289184#M214095</guid>
      <dc:creator>StevenOD</dc:creator>
      <dc:date>2020-02-05T12:34:25Z</dc:date>
    </item>
  </channel>
</rss>

