Support Questions

Find answers, ask questions, and share your expertise

I am not able to reset/clear the state of ListSFTP 2.5.0 processor

avatar
New Contributor

Hi everyone,

I'm a very new user and am currently using Nifi to design a system that will automatically download files from an SFTP server. I will be utilizing "Tracking Entities" as the listing strategy.

However, sometimes I might need to re-download files from the server, so I need a method to clear/reset the state of the ListSFTP processor. All of the replies I looked at said to right-click, select "View State" and click on the "Clear State" link.

But there's no such link, at least for 2.5.0 on my machine: I have the "filter" text box, a list where I can sort things by "key" or "value" and the "close" button. I'm at a loss as to how to do this.

Another post suggested that I delete the directories storing the data used by ListSFTP, but a) I feel that that is not a very elegant solution, and b) can someone point out to me which directories are these?

All help would be greatly appreciated.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Amry 

The "clear state" option only appears if ListSFTP is configured to use "tracking timestamps" and there is state available to be cleared.  

Since you are using "tracking entities", entities are being tracked in a NiFi MapCacheServer.    

If your MapCacheServer has been configured with a "persistence Directory", you'll need to stop the cache server, delete the contents of the persistence directory and then restart the cache server to clear the data.
If your MapCacheServer has NOT been configured with a "persistence Directory", you'll need to stop the cache server and then restart the cache server to clear the data.


Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt

View solution in original post

5 REPLIES 5

avatar
Community Manager

@Amry, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @MattWho and @SAMSAL, who may be able to assist you further.

Please feel free to provide any additional information or details about your query. We hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Contributor

Hello @Amry

Strange, you should be able to see something like this: 

vafs_0-1755895728804.png

Do you have that button? 

Can you confirm your CFM version so I can take a look on a version like that as well? 


Regards,
Andrés Fallas
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.

avatar
New Contributor

Hi @vafs ,

How odd, this is what my screen looks like, on both Linux and Windows:

https://i.imgur.com/3Lo8m2O.png

The version I'm using is 2.5.0.

Regards,

avatar
Master Mentor

@Amry 

The "clear state" option only appears if ListSFTP is configured to use "tracking timestamps" and there is state available to be cleared.  

Since you are using "tracking entities", entities are being tracked in a NiFi MapCacheServer.    

If your MapCacheServer has been configured with a "persistence Directory", you'll need to stop the cache server, delete the contents of the persistence directory and then restart the cache server to clear the data.
If your MapCacheServer has NOT been configured with a "persistence Directory", you'll need to stop the cache server and then restart the cache server to clear the data.


Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt

avatar
New Contributor

You did it! I changed my tracking strategy to "Tracking timestamps" and it now populated the "View State" window. Thank you very much for your assistance!