cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my job run on shared compute instead of job compute?

cm04
New Contributor III

I have configured a job using `databricks.yml`

```

resources:
  jobs:
    my_job:
      name: my_job
      tasks:
        - task_key: create_feature_tables
          job_cluster_key: my_job_cluster
          spark_python_task:
            python_file: ../src/create_feature_tables.py
        - task_key: evaluate_model
          job_cluster_key: my_job_cluster
          spark_python_task:
            python_file: ../src/evaluate_model.py
      job_clusters:
        - job_cluster_key: my_job_cluster
          new_cluster:
            policy_id: ${var.job_cluster_policy}
            spark_version: 15.2.x-cpu-ml-scala2.12
            node_type_id: i3.xlarge
            aws_attributes:
              first_on_demand: 1
            autoscale:
              min_workers: 1
              max_workers: 12  
```
For some reason, the job runs on shared compute, not my_job_compute as configured in the yml file:
cm04_0-1725643451954.png
How can I coax Databricks to use my_job_cluster, not shared compute?
1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Contributor III

Hi @cm04 ,

You can try to upgrade CLI to newest version. I've seen similiar issue before and upgrading CLI was a solution back then.

Solved: Yml file replacing job cluster with all-purpose cl... - Databricks Community - 72248

View solution in original post

2 REPLIES 2

szymon_dybczak
Contributor III

Hi @cm04 ,

You can try to upgrade CLI to newest version. I've seen similiar issue before and upgrading CLI was a solution back then.

Solved: Yml file replacing job cluster with all-purpose cl... - Databricks Community - 72248

cm04
New Contributor III

Thanks! Updating CLI from v .224 to v0.228 seems to have resolved the issue.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group