Overriding the job-level instance type using the CLI [Technical Preview]

Spot instance settings are the default settings at Virtual Cluster (VC) level, however, to enhance flexibility, you can overwrite the defaults on a per-job basis.

This feature is applicable only if the VC-level instance type is a spot instance. This feature is not applicable if the VC-level instance type is on-demand. In such a case, setting the compute configuration at the job level results in an error.

To set the job level instance type override, you must configure the following CLIs:

You need the following variables for the commands:

CLUSTER-ID
To obtain the cluster ID:
  1. Log in to the Cloudera Data Engineering UI and navigate to Administration in the left-navigation menu.
  2. Select the respective service.
  3. Click on the Service Details icon, and copy the CLUSTER ID.
VC-ID
To obtain the VC ID:
  1. Log in to the Cloudera Data Engineering UI and navigate to Administration in the left-navigation menu.
  2. Select the respective service and then the respective VC.
  3. Click on the Virtual Cluster Details icon, and copy the VC-ID.
  1. Enable the job-level instance type override for a new or an existing Cloudera Data Engineering VC using the CDP CLI Beta.
    1. For creating a Cloudera Data Engineering VC, use the following command:
      cdp de create-vc --cluster-id [***CLUSTER-ID***] --vc-id [***VC-ID***] --enable-compute-override
    2. For an existing Cloudera Data Engineering VC, use the following command:
      cdp de update-vc --cluster-id [***CLUSTER-ID***] --vc-id [***VC-ID***] --enable-compute-override
  2. Override the selected instance type on Cloudera Data Engineering job level for a new or an existing job using the CDE CLI.
    1. For creating a new job, run one of the following commands:
      • To use the instance type on job level that is set on the VC level, run the following command:
        cde job create --compute-configuration "inherit" ...
      • To override the selected instance type on a Cloudera Data Engineering job level and set on-demand as the instance type, run the following command:
        cde job create --compute-configuration "on-demand" ...
    2. For updating an existing job, run one of the following commands:
      • To use the instance type on job level that is set on the VC level, run the following command:
        cde job update --compute-configuration "inherit"
      • To override the selected instance type on a Cloudera Data Engineering job level and set on-demand as the instance type, run the following command:
        cde job update --compute-configuration "on-demand"
  3. Optional: Disable the job-level instance type override on a Cloudera Data Engineering VC using the following command in the CDP CLI.
    cdp de update-vc --cluster-id [***CLUSTER-ID***] --vc-id [***VC-ID***] --no-enable-compute-override