<?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 FetchSMB not fetching all files in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413742#M254222</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Iam using ListSMB which lists all the files correctly on the source system.&lt;/P&gt;&lt;P&gt;However, not all files are fetched using FetchSMB, some of the files are skipped with below error.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;could this be due to&amp;nbsp;// in the file path ?&lt;/LI&gt;&lt;LI&gt;is it due to some issue on the SMB server settings ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;FetchSmb[id=03ab6b24-019d-1000-0000-000032e5cf1d] Could not fetch file SDM-Prod-Reports/EOS_TFC_Metrics//EOS_TFC_Metrics.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP&lt;BR /&gt;- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: java.util.concurrent.TimeoutException: Timeout expired&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current version:&amp;nbsp;&lt;/P&gt;&lt;DIV class="font-bold"&gt;2.4.0&lt;/DIV&gt;&lt;DIV class="text-sm ml-2"&gt;Tagged rel/nifi-2.4.0&lt;/DIV&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 06:51:24 GMT</pubDate>
    <dc:creator>nisaar</dc:creator>
    <dc:date>2026-03-20T06:51:24Z</dc:date>
    <item>
      <title>FetchSMB not fetching all files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413742#M254222</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Iam using ListSMB which lists all the files correctly on the source system.&lt;/P&gt;&lt;P&gt;However, not all files are fetched using FetchSMB, some of the files are skipped with below error.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;could this be due to&amp;nbsp;// in the file path ?&lt;/LI&gt;&lt;LI&gt;is it due to some issue on the SMB server settings ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;FetchSmb[id=03ab6b24-019d-1000-0000-000032e5cf1d] Could not fetch file SDM-Prod-Reports/EOS_TFC_Metrics//EOS_TFC_Metrics.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP&lt;BR /&gt;- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired&lt;BR /&gt;- Caused by: java.util.concurrent.TimeoutException: Timeout expired&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current version:&amp;nbsp;&lt;/P&gt;&lt;DIV class="font-bold"&gt;2.4.0&lt;/DIV&gt;&lt;DIV class="text-sm ml-2"&gt;Tagged rel/nifi-2.4.0&lt;/DIV&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 06:51:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413742#M254222</guid>
      <dc:creator>nisaar</dc:creator>
      <dc:date>2026-03-20T06:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: FetchSMB not fetching all files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413743#M254223</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/147580"&gt;@nisaar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The ListSMB processor only fetches metadata about the files in the target SMB location.&amp;nbsp; For each file found it creates a 0 byte NiFi FlowFile that includes a bunch of metadata that can be used to fetch the content later by the FetchSMB processor.&amp;nbsp; &amp;nbsp;The List&amp;lt;type&amp;gt; and Fetch&amp;lt;type&amp;gt; processors are used to make sure one node in a multi-node NiFi cluster si not doing all the heavy work.&amp;nbsp; The List&amp;lt;type&amp;gt; processor would be configured to run on "Primary Node" only.&amp;nbsp; The success relationship would be connected to the FetchSMB via a connection.&amp;nbsp; That connection would the need to be configured to load balance the 0 Byte FlowFiles across all your NiFi nodes so that each could Fetch a fair share of the content and process a fair share of the workload of this dataflow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What are the difference between the files that fail on content fetch versus those that are successful?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are these files larger resulting in a timeout exception?&lt;/LI&gt;&lt;LI&gt;Are those that are timing out always being fetched by one specific node in your NiFi cluster?&amp;nbsp; &amp;nbsp;Have you verified the all nodes can successfully connect to the SMB server?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Have you tried increasing the timeout set in the&amp;nbsp;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.services.smb.SmbjClientProviderService/" target="_blank" rel="noopener"&gt;SmbjClientProviderService&lt;/A&gt;&amp;nbsp;used by the SMB processors?&amp;nbsp; Try setting it to 60 seconds or higher to see if the failed files can successfully fetch the content from SMB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 13:05:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413743#M254223</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-03-20T13:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: FetchSMB not fetching all files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413744#M254224</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Files are around 100 MB to 200 MB.&lt;/P&gt;&lt;P&gt;Usually the files listed and fetched are done by Primary node itself.&lt;/P&gt;&lt;P&gt;One more observation is it's not always the same file that fails, the file that got failed fetching works fine sometimes.&lt;/P&gt;&lt;P&gt;So, my understanding is its nothing to do with file. session is timing out for some reason.&lt;/P&gt;&lt;P&gt;After adding timeout of 60 sec in&amp;nbsp;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.services.smb.SmbjClientProviderService/" rel="noopener nofollow noreferrer" target="_blank"&gt;SmbjClientProviderService&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;got below error&lt;BR /&gt;FetchSmb[id=03ab6b24-019d-1000-0000-000032e5cf1d] Could not fetch file SDM-Prod-Reports/EOS_TFC_Metrics//EOS_TFC_Metrics.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP&lt;BR /&gt;- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id &amp;lt;&amp;lt; 11 &amp;gt;&amp;gt; as transport is disconnected&lt;BR /&gt;- Caused by: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id &amp;lt;&amp;lt; 11 &amp;gt;&amp;gt; as transport is disconnected&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 18:07:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413744#M254224</guid>
      <dc:creator>nisaar</dc:creator>
      <dc:date>2026-03-20T18:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: FetchSMB not fetching all files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413751#M254228</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/147580"&gt;@nisaar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The exception indicates the an initial connection issue resulting in a failing to complete the connection.&amp;nbsp; This would be network or server side issue and not a client (ListSMB/FetchSMB) issue.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Usually the files listed and fetched are done by Primary node itself&lt;/LI-CODE&gt;&lt;P&gt;This statement is not clear.&amp;nbsp; What does "Usually" mean.&amp;nbsp; The ListSMB processor should be configured to only execute on the "Primary node" only to prevent multiple nodes in your NiFi cluster from listing the same files multiple times.&amp;nbsp; &amp;nbsp; If the ListSMB processor is configured for "primary node" execution and you are seeing FlowFile specific to this flow being listed on different nodes then the node that was elected as primary node is changing.&amp;nbsp; I'd suggest taking a closer look at the logs or node events via the NiFi UI to see why the cluster coordinator role is changing nodes.&amp;nbsp; Maybe you are experiencing some long stop the world Garbage Collection pauses (could lead to timed out connections).&amp;nbsp; Maybe you Primary nodes Core load average is exceptionally high as well since you are not distributing the workload across all your nodes or you have concurrent tasks set to high.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How many concurrent tasks do you have configured on the FetchSMB processor?&lt;/LI&gt;&lt;LI&gt;Have you inspected the SMB server logs at the times of these failed connections for any errors or events during these connection attempts?&lt;/LI&gt;&lt;LI&gt;How many nodes in your NiFi cluster?&amp;nbsp; Is their a reason that you are not using load balancing on the connection between ListSMB and FetchSMB so that all your NiFi cluster nodes share the workload on fetch the content and processing it?&lt;/LI&gt;&lt;LI&gt;Since it is intermittent failure, have you built retry into your design?&amp;nbsp; You can set "retry" on the failure relationship that will trigger NiFi to re-queue the failed FlowFile so it is retried a configurable number of times before finally being routed to the connection containing the "failure" relationship.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 12:44:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413751#M254228</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-03-23T12:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: FetchSMB not fetching all files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413793#M254234</link>
      <description>&lt;P&gt;Sorry for the delayed response.&lt;/P&gt;&lt;P&gt;We were able to kind of resolve the issue by adding a retry on ListSMB and FetchSMB processors.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Number of Attempts : 2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Retry Back Off Policy: Penalize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Retry maximum backoff period : 1 minute&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test the working we have scheduled it to run every 30 min.&lt;/P&gt;&lt;P&gt;However, we are observing that whenever a retry happens the scheduler won't run&amp;nbsp; on scheduled time. Not sure how retry is affecting scheduler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 14:18:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/FetchSMB-not-fetching-all-files/m-p/413793#M254234</guid>
      <dc:creator>nisaar</dc:creator>
      <dc:date>2026-03-31T14:18:51Z</dc:date>
    </item>
  </channel>
</rss>

