Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
adbdkb
Creator
Creator

Does Qlik allow to change target endpoint after task has run

We are setting up our task with z/OS DB2 as source endpoint and Kafka as target endpoint.  We will be running this in production for a few months and then we have a requirement to change the target endpoint of the task from Kafka to Kinesis.  Basically, at that point in time, the task will be doing incremental loads and we want to continue the incremental loads to Kinesis but don't want to duplicate what has already been loaded in Kafka.  

So, I am wondering whether we can stop the task and change the target in the same task?

Also, is it possible to schedule the task to run during a given start and end time and the next schedule will pick up from where the previous left off?

Thanks

 

 

2 Solutions

Accepted Solutions
Michael_Litz
Support
Support

Hi,

 

Yes, you should be able to change the target endpoint.

There are three ways to schedule tasks.

1) In the replicate GUI under server use the scheduling tool. See the replicate user guide

2) You can use the RestAPI and make calls to the commands stop/status/start (supported and recommended method) Please see QEM developer documentation.

3) You can use the replicate command line to do the same as above (not supported - feature could change or be depreciated anytime).

Thanks,
Michael

View solution in original post

Alan_Wang
Support
Support

Hi @adbdkb 

You can change target endpoints, but as the state manager is allocated to the previous target, you'll need to start the task from a timestamp so the task can reallocate a new one. The task logs will have a source timestamp that it stopped at so you can pick up from where you left off using that timestamp.

Please test this in a dev environment as you may not be able to use the resume option when switching targets. 

If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

8 Replies
Michael_Litz
Support
Support

Hi,

 

Yes, you should be able to change the target endpoint.

There are three ways to schedule tasks.

1) In the replicate GUI under server use the scheduling tool. See the replicate user guide

2) You can use the RestAPI and make calls to the commands stop/status/start (supported and recommended method) Please see QEM developer documentation.

3) You can use the replicate command line to do the same as above (not supported - feature could change or be depreciated anytime).

Thanks,
Michael

Alan_Wang
Support
Support

Hi @adbdkb 

You can change target endpoints, but as the state manager is allocated to the previous target, you'll need to start the task from a timestamp so the task can reallocate a new one. The task logs will have a source timestamp that it stopped at so you can pick up from where you left off using that timestamp.

Please test this in a dev environment as you may not be able to use the resume option when switching targets. 

If the issue is solved please mark the answer with Accept as Solution.
adbdkb
Creator
Creator
Author

Thank you.  And yes, currently trying to do this in development environment.  

Where do I specify to start the task from a timestamps?

Michael_Litz
Support
Support

Hi,

Under run /  advanced option you will it.

Thanks,
Michael

Alan_Wang
Support
Support

On the drop down menu next to the run button, you will find advanced Run Options.

Alan_Wang_0-1657138487918.png

 

If the issue is solved please mark the answer with Accept as Solution.
adbdkb
Creator
Creator
Author

Thanks.  

adbdkb_0-1657139693490.png

What is Source Change Position here

Source change position (e.g. SCN or LSN):

 

Steve_Nguyen
Support
Support

@adbdkb

 

1. there is the user guide :

https://help.qlik.com/en-US/replicate/May2022/Content/Global_Common/Content/SharedEMReplicate/Tasks%...

 

2. there are other forum and article :

https://community.qlik.com/t5/Qlik-Replicate/How-can-I-find-quot-Source-change-position-quot-of-Post...

 

https://community.qlik.com/t5/Knowledge/How-to-start-a-Replicate-task-with-Oracle-source-endpoint-fr...

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!
Alan_Wang
Support
Support

SCN is for Oracle database sources and LSN is for SQL Server source. They're a system timestamp relevant to the corresponding database. It refers back to a specific source record to start the task.

IBM DB2 for z/OS also has its own Source Change Position you can use. I don't know the exact format of it so you will need to start another forum post or a case to get the answer for this.

If the issue is solved please mark the answer with Accept as Solution.