tSystem not getting stop

Five Stars

tSystem not getting stop

Hi,

I'm using tSystem component to check weather Karaf is running or not with below command

 

cmd /c C:/Talend/runtime/bin/client.bat -h servername

 

After running this command, job is not getting stopped. So I have used parallel component.

 

 

 

tParallel--->tSystem---onsubjobError---tdie

|

|---------------->tsleep(20sec)----tjava(check that job is going to be killed manually)---->tdie (In this subjob, its concluded karaf is running)

 

But this completes in one hour...dont know why ?

 

 

Can anyone suggest me why its happening ? Or any other option to stop tSystem ?

 

Thanks

 

 

 

Eleven Stars

Re: tSystem not getting stop

I think than your batch did not get out.
just try with an echo.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Five Stars

Re: tSystem not getting stop

@fdenisCan you please explain more...? What should I do or try exactly ...?

Eleven Stars

Re: tSystem not getting stop

just try with "echo bonjour" in your command line.

what is the result of "C:/Talend/runtime/bin/client.bat -h servername" in a cmd window.

PS: you did not need cmd \c on tSystem

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Five Stars

Re: tSystem not getting stop

It shows Karaf started and goes into karaf console like below..

karaf@trun()>

 

Moreover , even after tdie, job is still running...!

 

Eleven Stars

Re: tSystem not getting stop

using tSystem you assume your command line get out cleanly.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Five Stars

Re: tSystem not getting stop

@fdenisHow can I stop my job the moment tdie executes ?

Eleven Stars

Re: tSystem not getting stop

just kill it in windows task manager.

try your .bat file. you need to add an exit command at the end.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch