Scheduling jobs with an external scheduler

You can use an external scheduler to schedule jobs in DataStage®.

Procedure

Use one of the following methods to schedule jobs with an external scheduler.

  • Call the REST API anywhere outside of the Cloud Pak for Data cluster. See the following example:
    
    https://CP4D.ibm.com/ibm/iis/api/dscdesignerapi?api=runDSJob&jobName=<JobName>&projectName=<ProjectName>&hostName=IS-EN-CONDUCTOR-0.EN-CONDgetFullOutput=true
    Note: Currently, IBM® Watson™ Knowledge Catalog must be installed for this method because it configures the default route that enables this procedure. Otherwise, you must use the NodePort solution similar to the Windows Client instructions.
  • Start the command-line interface (CLI) by using the oc CLI. With this method, you can start jobs from any computer that is outside of the Cloud Pak for Data. The only requirement with this method is that the oc CLI is installed. See the following example:
    oc exec -it is-en-conductor-0 -- bash -c ". /opt/IBM/InformationServer/Server/DSEngine/dsenv;/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob -lprojects"