Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I created a job with the aim of moving log files of a kafka process from one drive (C:\) to another. The reason is that it leaves little empty space on that drive.
But some files I'm unable to move, even after stopping the kafka process. The tFileDelete component keeps giving me the "No file deleted" message (((String)globalMap.get("tFileDelete_1_CURRENT_STATUS"));)
Below is the image I get when I try to manually remove the file from the disk:
Is there a way in a Job to overcome this hurdle?
Thank you so much,
Rui
Hello,
Here is a solution provided in this stackoverflow article about:
https://stackoverflow.com/questions/12241115/open-in-javatm-platform-se-binary
You could drag a built-in component tSystem in your current job designer to call Windows command prompt and kill the java process (File in use) firstly and then execute tFileDelete component to move your log files.
Feel free to let us know if it helps.
Best regards
Sabrina
Hello,
Here is a solution provided in this stackoverflow article about:
https://stackoverflow.com/questions/12241115/open-in-javatm-platform-se-binary
You could drag a built-in component tSystem in your current job designer to call Windows command prompt and kill the java process (File in use) firstly and then execute tFileDelete component to move your log files.
Feel free to let us know if it helps.
Best regards
Sabrina
Hi Sabrina,
You're absolutely right. Thank you so much.
Cheers
Hello,
Great it helps and feel free to let us know if there is any further help we can give.
Best regards
Sabrina