繁体   English   中英

从 Azure Databricks 笔记本登录到 Azure ML 工作区

[英]Login to Azure ML workspace from Azure Databricks notebook

我正在 Azure Databricks 集群中编写一个 python 笔记本来执行 Azure 机器学习实验。 我已经创建了一个 Azure ML 工作区并在我的笔记本中实例化了一个工作区对象,如下所示:

id = InteractiveLoginAuthentication(force=False, tenant_id=AzureTenantId)
ws = Workspace(SubscriptionId, ResourceGroupName, WorkspaceName, auth = id)

我正在尝试对 azure 执行交互式登录以访问工作区,但是当我运行笔记本时,出现以下错误。 笔记本是用python写的

Falling back to use azure cli credentials. This fall back to use azure cli credentials will be removed in the next release. 
Make sure your code doesn't require 'az login' to have happened before using azureml-sdk, except the case when you are specifying AzureCliAuthentication in azureml-sdk.
Performing interactive authentication. Please follow the instructions on the terminal.
From cffi callback <function _verify_callback at 0x7f4736825d08>:
Traceback (most recent call last):
  File "/databricks/python/lib/python3.5/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'

有人可以帮我解决这个问题吗? 这真的是 OpenSSL 问题吗?

尝试使用pip install azureml-sdk[databricks]在 Azure Databricks 群集上安装 SDK。 pip extra 确保某些依赖项被固定到正确的版本。

您需要在集群上安装 azureml-sdk[databricks] 库。 不是 azureml-sdk,而是 azureml-sdk[databricks]: http ://prntscr.com/mpk05g

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM