<?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: Executing SQL Script to Process Files in NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/391254#M247535</link>
    <description>&lt;P&gt;how to download this template? thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 09:59:47 GMT</pubDate>
    <dc:creator>bowenz</dc:creator>
    <dc:date>2024-08-01T09:59:47Z</dc:date>
    <item>
      <title>Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375814#M242669</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm working on a data processing flow using Apache NiFi, and I have a scenario that I'd like some guidance on.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;I have an Execute SQL script that retrieves data from a table in a SQL Server. Among the data returned, I have source and target folder paths.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;My goal is to loop through each of these source folder paths. For each folder, if there are any files present, I need to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Insert a record into the database to log the file's details.&lt;/LI&gt;&lt;LI&gt;Move the file from the source folder to the corresponding target folder.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I'm currently using NiFi, and I'm wondering what processors and strategies I should consider to achieve this workflow efficiently. Any insights, recommendations, or examples of similar workflows would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 06:39:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375814#M242669</guid>
      <dc:creator>RRG</dc:creator>
      <dc:date>2023-08-31T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375818#M242672</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106762"&gt;@RRG&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:28:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375818#M242672</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-08-31T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375900#M242697</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106762"&gt;@RRG&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The below example can give you an idea of what processors you might need to use to achieve what you are looking for. You might adjust processors as needed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1693520626127.png" style="width: 477px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38374i2DEED2BAAF34A31E/image-dimensions/477x370?v=v2" width="477" height="370" role="button" title="SAMSAL_0-1693520626127.png" alt="SAMSAL_0-1693520626127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Feel free to let me know if you have any questions.&lt;/P&gt;&lt;P&gt;If that helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 22:26:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/375900#M242697</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-08-31T22:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377023#M243098</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32119"&gt;@VidyaSargur&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;When using the ExtractText processor, I'm encountering an issue where it returns matched data with file names like 'README,' 'NOTICE,' and 'LICENSE.'&lt;/P&gt;&lt;P&gt;I've noticed that even if there are no files in the source folder, running the package results in records being inserted into the database with these 'README,' 'NOTICE,' and 'LICENSE' file names.&lt;/P&gt;&lt;P&gt;Is there a way to prevent this behavior, so that only actual files in the source folder are processed and inserted into the database?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 20:48:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377023#M243098</guid>
      <dc:creator>RRG</dc:creator>
      <dc:date>2023-09-28T20:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377029#M243100</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106762"&gt;@RRG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In the ExtractText you can use the following pattern to get only valid files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(^((?!README|LICENSE|NOTICE).)*$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This pattern will exclude any text containing readme, license or notice in it.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 02:33:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377029#M243100</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-09-29T02:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377031#M243102</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;If I can receive the real file name that includes this text?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 06:03:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377031#M243102</guid>
      <dc:creator>RRG</dc:creator>
      <dc:date>2023-09-29T06:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377045#M243110</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106762"&gt;@RRG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Not sure I understand. Can you please elaborate?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 13:14:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/377045#M243110</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-09-29T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Executing SQL Script to Process Files in NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/391254#M247535</link>
      <description>&lt;P&gt;how to download this template? thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:59:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Executing-SQL-Script-to-Process-Files-in-NiFi/m-p/391254#M247535</guid>
      <dc:creator>bowenz</dc:creator>
      <dc:date>2024-08-01T09:59:47Z</dc:date>
    </item>
  </channel>
</rss>

