Python DatabricksCLI:get_run 总是失败

问题描述 投票:0回答:0

我正在使用 databricks 的

Job_Service
API

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))

独立于

job
的内容我得到错误信息:

job={"run_name":"Pythonjob","existing_cluster_id": "xxx","notebook_task":{"notebook_path": "/Repos/[email protected]/freshRepo/tests/transforms_test.py"}}
jobs_service=service.JobsService(api_client)
running_job=jobs_service.submit_run(json.dumps(job))

在日志中我发现使用了 REST 端点

api/2.0/jobs/runs/submit
here 提供的示例也不起作用。我的代码有什么问题?

databricks databricks-cli
© www.soinside.com 2019 - 2024. All rights reserved.