是否可以通过 REST API 运行 databricks 笔记本的单元格?

发布于 2025-01-15 14:47:53 字数 152 浏览 0 评论 0 原文

我想通过 REST API 自动运行笔记本单元,以提高我们创建的开发工具的可用性 更好。这在数据块中可能吗?

I would like to run a notebook cell automatically via REST API to make the usability of a dev tool we created better. Is that possible in databricks?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月蹉跎了容颜 2025-01-22 14:47:53

是的,使用较旧的 API 版本 1.2 是可能的。您需要使用 创建执行上下文/api/1.2/contexts/create API(需要集群ID和使用的语言),然后可以使用/api/1.2/commands/execute API,并使用 /api/1.2/commands/status API。请注意,您需要保留上下文来执行多个相互依赖的命令...

您可以找到 Databricks Terraform 提供程序源代码中使用 Go 语言执行此类执行的示例

Yes, it's possible by using an older API version 1.2. You need to create an execution context with /api/1.2/contexts/create API (it requires cluster ID and what language is used), and then you can submit code using the /api/1.2/commands/execute API, and get command execution status using /api/1.2/commands/status API. Please note that you need to keep context to execute multiple commands depending on each other...

You can find an example of such execution using the Go language in the source code of Databricks Terraform provider

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文