Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator II
Creator II

Talend Studio - Job unable to move a log file ("No file deleted")

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:

RMotta2408_0-1719224999780.png

 

Is there a way in a Job to overcome this hurdle?

Thank you so much,

Rui 

 

Labels (2)
1 Solution

Accepted Solutions
Xiaodi_Shi
Support
Support

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

 

 

View solution in original post

3 Replies
Xiaodi_Shi
Support
Support

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

 

 

RMotta2408
Creator II
Creator II
Author

Hi Sabrina,

You're absolutely right. Thank you so much.

Cheers

Xiaodi_Shi
Support
Support

Hello,

Great it helps and feel free to let us know if there is any further help we can give.

Best regards

Sabrina