<?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 how to configure ListSFTP + FetchSFTP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315939#M226641</link>
    <description>&lt;P&gt;I am trying to collect data with NiFi using ListSFTP+FetchSFTP. But in the configuration ListSFTP works correctly but I have problems with the configuration of FetchSFTP. I tried with ${path}/${filename} still the problem persists,I also used only the data path, but that doesn't work either . the problem also I have a folder of several files.&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 11:31:43 GMT</pubDate>
    <dc:creator>Justee</dc:creator>
    <dc:date>2021-05-06T11:31:43Z</dc:date>
    <item>
      <title>how to configure ListSFTP + FetchSFTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315939#M226641</link>
      <description>&lt;P&gt;I am trying to collect data with NiFi using ListSFTP+FetchSFTP. But in the configuration ListSFTP works correctly but I have problems with the configuration of FetchSFTP. I tried with ${path}/${filename} still the problem persists,I also used only the data path, but that doesn't work either . the problem also I have a folder of several files.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 11:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315939#M226641</guid>
      <dc:creator>Justee</dc:creator>
      <dc:date>2021-05-06T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure ListSFTP + FetchSFTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315951#M226647</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88169"&gt;@Justee&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sharing the configuration of both your listSFTP and FetchSFTP processor, as well as a listing of the target SFTP directory would be helpful to those who could assist you here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The listSFTP processor should be configured with only the base path where all the files you want to list exist&amp;nbsp; in the "Remote Path" property.&amp;nbsp; If the files you want to list reside within sub-directories of that base directory, make sure you also se "Search Recursively" to true.&lt;BR /&gt;&lt;BR /&gt;The ListSFTP processor will output a NiFi FlowFile for each file that is listed.&amp;nbsp; Also those produced FlowFiles will have FlowFile attributes set on them with:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1620325087873.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31119i65D9652472421B1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1620325087873.png" alt="MattWho_0-1620325087873.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you might want to list those FlowFiles in the NiFi connection queue an inspect what values were set on these properties.&amp;nbsp; Are they correct?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;These attributes can then be used in the FetchSFTP processor to facilitate the fetching of the content for each FlowFile listed.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/31120i9B6EE4753B57DB9F/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="Screen Shot 2021-05-06 at 2.18.36 PM.png" title="Screen Shot 2021-05-06 at 2.18.36 PM.png" /&gt;</description>
      <pubDate>Thu, 06 May 2021 18:23:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315951#M226647</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-06T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure ListSFTP + FetchSFTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315964#M226654</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@MattWho," target="_blank"&gt;Hi@MattWho, I have a folder of files.&lt;/A&gt; Here is the configuration I tried to set up but the problem is on remote filename I tried: remote filename = ${/home/Data/}&amp;nbsp; remote fiename = /home/Data/, but both do not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ListSFTP  settings" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31124iCE774FBD66BC0F9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="ListSFTPimage.png" alt="ListSFTP  settings" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ListSFTP  settings&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FetchSFTP settings" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31125iF4EE3A00840026C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="FetchSFTPima.png" alt="FetchSFTP settings" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FetchSFTP settings&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 00:10:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315964#M226654</guid>
      <dc:creator>Justee</dc:creator>
      <dc:date>2021-05-07T00:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure ListSFTP + FetchSFTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315982#M226663</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88169"&gt;@Justee&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You definitely can't use "/Home/Data/" in the "Remote File" property of the FetchSFTP processor.&amp;nbsp; This must be a the full path to a specific file being fetched, which means it should be getting that path and filename values from the inbound FlowFile's attributes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1620390199833.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31130i45AB6CC21220109C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1620390199833.png" alt="MattWho_0-1620390199833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your ListSFTP (which you said is working) would be producing a FlowFile for each File found at target directory non your SFTP server.&amp;nbsp; Those FlowFiles will get queued on the outbound connection containing the ListSFTP's "success" relationship.&lt;BR /&gt;&lt;BR /&gt;That connection is the inbound connection to the FetchSFTP processor that will connect to same SFTP server and retrieve the content for each of those FlowFiles that were produced by the ListSFTP processor.&lt;BR /&gt;&lt;BR /&gt;The "Remote File" property on the FetchSFTP processor should be using NiFi Expression Language (EL) to dynamically set the path and filename being fetched uniquely for each inbound FlowFile.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${path}/${filename}&lt;/LI-CODE&gt;&lt;P&gt;NiFi is case sensitive, so make sure you are using all lowercase so it matches the attribute names created on the Source FlowFiles by the ListSFTP processor.&lt;BR /&gt;&lt;BR /&gt;When you say the FetchSFTP processor is "not working", what does that mean?&lt;BR /&gt;To which relationship are the inbound FlowFiles getting routed when it does not work?&lt;BR /&gt;What exception (ERROR) is logged in the nifi-app.log when it fails to fetch the content for an inbound FlowFile?&lt;BR /&gt;Make sure when you configured the username and password on the FetchSFTP you did not accidentally add a leading or trailing whitespace.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-ListSFTP-FetchSFTP/m-p/315982#M226663</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-07T12:31:53Z</dc:date>
    </item>
  </channel>
</rss>

