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: 

Getting

anantkharat
New Contributor II
payload = {
"clusters": [
{
"num_workers": 4
}
],
"pipeline_id": pipeline_id
}
update_url = f"{workspace_url}/api/2.0/pipelines/{pipeline_id}"
response = requests.put(update_url, headers=headers, json=payload)


for this, i'm getting below output with status code 400.
{"error_code":"INVALID_PARAMETER_VALUE","message":"Cannot modify catalog of an existing pipeline. Existing catalog: 'doha'. Requested catalog: ''"}
 
i also have tried with 
 
url = f"{workspace_url}/api/2.0/pipelines/{pipeline_id}"
response = requests.get(url, headers=headers)
response.json()
 
using above response and modifying the num_workers, without changing any catalog parameter and also with catalog parameter same as previous. but still getting same error..

kindly help





1 ACCEPTED SOLUTION

Accepted Solutions

NandiniN
Databricks Employee
Databricks Employee

Hi @anantkharat ,

Can you please try something like 
pipelines.update(pipeline_id, configuration=configuration, catalog='doha')

From the error message it says catalog was empty.

Check this section https://docs.databricks.com/api/workspace/pipelines/update#catalog

A catalog in Unity Catalog to publish data from this pipeline to. If target is specified, tables in this pipeline are published to a target schema inside catalog (for example, catalog.target.table). If target is not specified, no data is published to Unity Catalog.

Thanks!

 

View solution in original post

2 REPLIES 2

NandiniN
Databricks Employee
Databricks Employee

Hi @anantkharat ,

Can you please try something like 
pipelines.update(pipeline_id, configuration=configuration, catalog='doha')

From the error message it says catalog was empty.

Check this section https://docs.databricks.com/api/workspace/pipelines/update#catalog

A catalog in Unity Catalog to publish data from this pipeline to. If target is specified, tables in this pipeline are published to a target schema inside catalog (for example, catalog.target.table). If target is not specified, no data is published to Unity Catalog.

Thanks!

 

NandiniN
Databricks Employee
Databricks Employee

Thank you for accepting the solution, I am glad it worked.

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