A job does not start

A job that stays in a starting state, or fails right after you run it, usually lacks compute cluster resources or a JAR file, or is rejected by a security policy. The events of the job report which.

Symptoms

A job stays in the Initializing or Deploying Job state, or it fails right after you run it.

Cause

One of the following:

  • The compute cluster does not have enough free CPU or memory for the JobManager and TaskManager pods of the job.
  • The security policy of the namespace rejects the pods of the job.
  • A connector, data format, or user-defined function that the job uses is missing.

Solution

  1. Open the events of the job, and find the first error.
    See Monitoring SQL jobs.
  2. If the pods do not fit on the compute cluster, lower the CPU and memory of the job, or its number of TaskManagers, on the Kubernetes Resources tab of the job settings.
    See Configuring job settings.
  3. If the events report that a security policy rejected the pods, contact your platform administrator.
  4. If the events report a missing class, see Missing JAR errors.