Skip to main content
GowthamiK
Silver ⭐️
April 10, 2024
Question

how to list files in Nifi from a different timezone using ListSFTP processor?

My Nifi server uses PDT timings and i want to list files from a source server which uses UTC timing. While using ListSFTP processor, only files available till current PDT timings are getting listed. (since UTC timing is ahead, many latest files from source end are not getting listed )

I don't want to change my Nifi server timezone to UTC as it would effect other existing flows.

i dont have an option to change timezone directly in my ListSFTP processor either 😞 

How i can fix this and list all the files directly using ListSFTP processor?

 

4 replies

DianaTorres
Community Manager
Community Manager
April 10, 2024

@GowthamiK Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our NiFi experts @mburgess @MattWho  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
mburgess
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
April 11, 2024

How is your ListSFTP processor configured? Can you increase the Entity Tracking Window to include the difference in timezones?

Translate
GowthamiK
GowthamiKAuthor
Silver ⭐️
April 26, 2024

Hi @mburgess , tried increasing the Entity time tracking window to 8 hours (the time difference is 7hrs here from PDT to UTC), but still could see the same files getting listed, not the latest ones from source server as expected.

Attached the Nifi ListSFTP configuration i'm using.


Capture1.PNGCapture.PNGCapture2.PNG
Translate
DianaTorres
Community Manager
Community Manager
April 17, 2024

@GowthamiK Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @mburgess has requested? Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator