<?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: Listing folders with NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370813#M240823</link>
    <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;This gives me confidence that my attempts are not going in the wrong direction.I already use ExecuteStreamCommand Processors excessively and it is a pleasure to use them here as well.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 05:22:50 GMT</pubDate>
    <dc:creator>DrManu</dc:creator>
    <dc:date>2023-05-16T05:22:50Z</dc:date>
    <item>
      <title>Listing folders with NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370706#M240803</link>
      <description>&lt;P&gt;I am trying to use Nifi to automatically create external Impala tables if there are new subfolders under a certain directory. For this I have the directory structure&lt;BR /&gt;data/&amp;lt;timestamp&amp;gt;/&amp;lt;tables&amp;gt;/*.parquet&lt;BR /&gt;I am therefore currently trying to first get a list of folders under data. Then I want to query all subfolders in these folders again, so that I can use them as table names in a SQL query that I send to Impala.&lt;BR /&gt;However, the ListFiles processor only returns files, I am not interested in the file names, I only need the folders.&lt;BR /&gt;Is there a way to do this with NiFi or is my plan complete nonsense?&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 07:49:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370706#M240803</guid>
      <dc:creator>DrManu</dc:creator>
      <dc:date>2023-05-15T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Listing folders with NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370743#M240812</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103006"&gt;@DrManu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I do not think that you will find a processor in NiFi which will extract only the folder name out of your location &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; You will either have to write your own processor or use a combination of several others, already part of NiFi.&lt;BR /&gt;&lt;BR /&gt;How I would honestly try the mentioned scenario:&lt;BR /&gt;- An ExecuteStreamCommand Processor in which you have defined a custom made script which will read your folder structure and generate a JSON File, where each row is basically a complete path to a specific Folder.&lt;BR /&gt;- Afterwards, you could use an SplitJson to generate a single FlowFile for each Folder and send it down your stream for further processing.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:33:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370743#M240812</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-05-15T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Listing folders with NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370813#M240823</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;This gives me confidence that my attempts are not going in the wrong direction.I already use ExecuteStreamCommand Processors excessively and it is a pleasure to use them here as well.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Listing-folders-with-NiFi/m-p/370813#M240823</guid>
      <dc:creator>DrManu</dc:creator>
      <dc:date>2023-05-16T05:22:50Z</dc:date>
    </item>
  </channel>
</rss>

