<?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 Bulk Data Transfer from Oracle to Cassandra with NiFi and Automatic Table Creation Using Avro Schemas in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Bulk-Data-Transfer-from-Oracle-to-Cassandra-with-NiFi-and/m-p/389395#M246980</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm new to NiFi and I'm trying to ingest data from more than 20 tables in an Oracle database into Cassandra. I have a few questions regarding the process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Can I transfer data from all the tables at once, without having to process each table individually? If so, what is the best approach to achieve this in NiFi?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there a method to automatically create tables in Cassandra using Avro schemas within the NiFi flow? This is particularly important because in some use cases, we need to overwrite the table instead of appending data. How can we handle this scenario efficiently?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 19 Jun 2024 18:51:33 GMT</pubDate>
    <dc:creator>helk</dc:creator>
    <dc:date>2024-06-19T18:51:33Z</dc:date>
    <item>
      <title>Bulk Data Transfer from Oracle to Cassandra with NiFi and Automatic Table Creation Using Avro Schemas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bulk-Data-Transfer-from-Oracle-to-Cassandra-with-NiFi-and/m-p/389395#M246980</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm new to NiFi and I'm trying to ingest data from more than 20 tables in an Oracle database into Cassandra. I have a few questions regarding the process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Can I transfer data from all the tables at once, without having to process each table individually? If so, what is the best approach to achieve this in NiFi?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there a method to automatically create tables in Cassandra using Avro schemas within the NiFi flow? This is particularly important because in some use cases, we need to overwrite the table instead of appending data. How can we handle this scenario efficiently?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 19 Jun 2024 18:51:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bulk-Data-Transfer-from-Oracle-to-Cassandra-with-NiFi-and/m-p/389395#M246980</guid>
      <dc:creator>helk</dc:creator>
      <dc:date>2024-06-19T18:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Data Transfer from Oracle to Cassandra with NiFi and Automatic Table Creation Using Avro Schemas</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bulk-Data-Transfer-from-Oracle-to-Cassandra-with-NiFi-and/m-p/389443#M246985</link>
      <description>&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Transferring Data from Multiple Tables in NiFi:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NiFi provides processors that allow you to pull data from database tables using JDBC drivers. For Oracle, you can use processors like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ExecuteSQL,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;QueryDatabaseTable, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GenerateTableFetch.&lt;/LI&gt;&lt;LI&gt;To transfer data from multiple tables, consider the following approaches:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Individual Flows for Each Table:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;You can create separate NiFi flows for each table. This approach is straightforward but may require more management.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Dynamic SQL Generation:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ListDatabaseTables&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;processor to list tables dynamically. Then, use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ReplaceText&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to create SQL statements for each table (using NiFi Expression Language). Finally, send these statements to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ExecuteSQL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for fetching data.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Parallel Fetching:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If you have a NiFi cluster, route&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GenerateTableFetch&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;into a Remote Process Group pointing at an Input Port on the same cluster.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Automatic Table Creation in Cassandra Using Avro Schemas:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To create tables in Cassandra, you can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PutCassandraRecord&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;processor. It allows you to put data directly into Cassandra without writing CQL.&lt;/LI&gt;&lt;LI&gt;For schema management, consider using Avro schemas. You can define Avro schemas for your data and use them within your NiFi flow.&lt;/LI&gt;&lt;LI&gt;To handle overwriting tables, you’ll need to manage the logic in your flow.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/55246719/can-nifi-load-data-from-db2-to-cassandra" target="_blank" rel="noopener"&gt;Can Nifi load data from DB2 to Cassandra? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 17:57:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bulk-Data-Transfer-from-Oracle-to-Cassandra-with-NiFi-and/m-p/389443#M246985</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2024-06-20T17:57:09Z</dc:date>
    </item>
  </channel>
</rss>

