I am using the Job_Service
API of databricks
job={"run_name":"Pythonjob","existing_cluster_id": "xxx","notebook_task":{"notebook_path": "xxx"}}
jobs_service=service.JobsService(api_client)
running_job=jobs_service.submit_run(json.dumps(job))
Independent of the content of job
I get the error message:
HTTP 400 Client Error: Bad Request for URL xxx
Respone from server: {'error_code': 'INVALID_PARAMETER_VALUE',
'message': 'One of job_clsuter_key, new_cluster or existing_cluster_id must be sepecified.'
In the logs I found that the REST Endpoint api/2.0/jobs/runs/submit
is used. The example provided here does not work either. What is wrong with my code?