Fetch Put SFTP Retry
Last updated
Last updated
This SOP outlines the steps required to configure and manage SFTP Retry for Fetch SFTP and Put SFTP processors in Apache NiFi, ensuring adherence to best practices. URL:
Navigate to Apache NiFi > Processor Group > Fetch/Put SFTP Processor.
Set the comms.failure
relationship to Retry. Configure the following values:
Number of Retry Attempts: 2
Retry Back Off Policy: Penalize
Retry Back Off Duration: 10 min (default)
Penalty Duration: 30 sec (default)
Add a funnel to the Fetch SFTP Processor.
Redirect the following relationships to the funnel:
comms.failure
permission.denied
not.found
Name the connected relationship: SFTP Fetch Fail
.
Set the [failure, reject] relationship to Retry. Configure the following values:
Number of Retry Attempts: 2
Retry Back Off Policy: Penalize
Retry Back Off Duration: 10 min (default)
Penalty Duration: 30 sec (default)
Add a funnel to the Put SFTP Processor.
Redirect the following relationships to the funnel:
failure
reject
Name the connected relationship: SFTP Put Fail
.
---
Access the SFTP processor where the files are queued.
Redirect the funnel relationships (SFTP Fetch Fail
or SFTP Put Fail
) back to the original processor by connecting the funnel to the respective processor.
This will create a loop to re-run the failures.
Process all the queued files.
Perform this action for both the Fetch and Put SFTP processors as applicable
Ensure the queued files are correctly processed after redirection.
Click on the hamburger icon in NiFi's main navigation bar.
Select Summary.
A new pop-up window titled "NiFi Summary" will appear.
Go to the Connections tab.
Search for the relationships "SFTP Fetch Fail" or "SFTP Put Fail" in the list.
Select By Name.
Sort the Queue (Size) column in descending order by clicking the column header.
Click on the Arrow Icon corresponding to the desired relationship to directly navigate to the associated processor.
Review the queued files for the processor and follow the resolution steps mentioned above to ensure proper processing.
Ensure all relationship names and funnel configurations strictly adhere to the specified formats:
SFTP Fetch Fail
SFTP Put Fail
Check for queued files periodically to prevent bottlenecks in data flow.