英文:
How to call a Databricks Notebook using Power Automate
问题
我工作的地方不允许调度笔记本并访问Power Automate,所以我想知道如何通过Power Automate调用Databricks笔记本?这样我就可以在Power Automate中安排此流程,并在我想要的时间运行笔记本...
我已经在Databricks中获取了连接令牌数据,我只需要知道如何在Power Automate中使用这些信息创建一个流程。
英文:
Where I work is not allowed to schedule a notebook and have access to power automate so I would like to know how to call a notebook databricks through power automate? so I can schedule this flow in the power automate and run the notebook at the time I want...
I have the connection token access data in databricks, I just need to know how to create a flow with this information in power automate.
答案1
得分: 2
以下是翻译好的部分:
我按照 @Nick.McDermaid 的评论中的步骤重现了上述情况,并获得了以下结果。
作为示例,我使用了 当收到HTTP请求,然后使用HTTP POST来调用Notebook的REST API。
您可以根据需求使用您的触发器。
这是我的流程:
URI:https://<databricks-instance>.azuredatabricks.net/api/2.0/jobs/runs/submit
Headers:授权 Bearer <databricks PAT token>
正文:
{
"existing_cluster_id": "<cluster id>",
"notebook_task": {
"notebook_path": "/Users/User_name/Notebook_name"
},
"run_name": "run name"
}
执行:
作业运行:
英文:
I reproduced the above scenario by following the @Nick.McDermaid's comment and got the below results.
For sample I have used a when a HTTP request is received and after that I have used http post to call the REST API of Notebook.
You can use your trigger as per the requirement.
This is my flow:
Give the following:
URI: https://<databricks-instance>.azuredatabricks.net/api/2.0/jobs/runs/submit
Headers: Authorization Bearer <databricks PAT token>
Body:
{
"existing_cluster_id": "<cluster id>",
"notebook_task": {
"notebook_path": "/Users/User_name/Notebook_name"
},
"run_name": "run name"
}
Execution:
Job run:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论