【问题标题】:How to start databricks cluster using web activity in azure data factory?如何在 azure 数据工厂中使用 Web 活动启动 databricks 集群?
【发布时间】:2020-02-01 12:50:02
【问题描述】:

当我运行 Web 活动时,它会将其重定向到登录页面,我得到以下 Web 活动的响应.. 请给点建议?

发布网址:https://abc.azuredatabricks.net/2.0/clusters/start

正文:{"cluster_id":"1234-567890-stoke123"}

{ "Response": "\n\n\n\n \n \n Databricks - 登录\n \n \n \n\n \n\n\n\n\n\n", “ADFWebActivityResponseHeaders”:{ “x-databricks-reason-phrase”:“好的”, "vary": "Accept-Encoding;User-Agent", "strict-transport-security": "max-age=31536000; includeSubDomains; preload", “x-content-type-options”:“nosniff”, "Cache-Control": "no-store, must-revalidate, no-cache", "日期": "2020 年 2 月 1 日星期六 10:00:44 GMT", “服务器”:“数据块” }, "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (美国中北部)", “执行持续时间”:0, “持续时间队列”:{ “集成运行时间队列”:0 }, “计费参考”:{ "activityType": "外部活动", “计费持续时间”:{ “托管”:0.016666666666666666 } } }

【问题讨论】:

  • 你在标题中传递了什么?您需要不记名令牌。
  • 嗨@simon_dmorias ...在“Authorizarion”标头中传递什么 - 从哪里获取不记名令牌......请提供任何示例?

标签: azure-data-factory-2 azure-databricks


【解决方案1】:

您需要在标头中传递不记名令牌:

Authorization = Bearer yourtoken

其中“Authorization”是键,“Bearer dapi1234567890”是值。 有关如何生成新令牌的信息,请参阅本文:

https://docs.databricks.com/dev-tools/api/latest/authentication.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-01
    • 1970-01-01
    • 2023-03-05
    • 2019-08-20
    • 1970-01-01
    • 2023-03-26
    • 2021-01-25
    相关资源
    最近更新 更多