[英]Login to Azure ML workspace from Azure Databricks notebook
I am writing a python notebook in Azure Databricks cluster to perform an Azure Machine learning experiment.我正在 Azure Databricks 集群中编写一个 python 笔记本来执行 Azure 机器学习实验。 I have created an Azure ML workspace and instantiating a workspace object in my notebook as follows:我已经创建了一个 Azure ML 工作区并在我的笔记本中实例化了一个工作区对象,如下所示:
id = InteractiveLoginAuthentication(force=False, tenant_id=AzureTenantId)
ws = Workspace(SubscriptionId, ResourceGroupName, WorkspaceName, auth = id)
I am trying to perform an interactive login to azure to access the workspace but when I run the notebook I get the following error.我正在尝试对 azure 执行交互式登录以访问工作区,但是当我运行笔记本时,出现以下错误。 the notebook is written in python笔记本是用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'
Could someone help me resolve this issue?有人可以帮我解决这个问题吗? Is it really an OpenSSL issue?这真的是 OpenSSL 问题吗?
are you following the Azure Doc over here?你在关注 Azure Doc 吗? https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-configure-environment#azure-databricks https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-configure-environment#azure-databricks
Have you looked at these notebooks?你看过这些笔记本吗? - https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/azure-databricks - https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/azure-databricks
Try using pip install azureml-sdk[databricks]
to install the SDK on Azure Databricks cluster.尝试使用pip install azureml-sdk[databricks]
在 Azure Databricks 群集上安装 SDK。 The pip extra ensures that certain dependencies are pinned to correct versions. pip extra 确保某些依赖项被固定到正确的版本。
You need to install azureml-sdk[databricks] library on your cluster.您需要在集群上安装 azureml-sdk[databricks] 库。 Not azureml-sdk, but azureml-sdk[databricks] : http://prntscr.com/mpk05g不是 azureml-sdk,而是 azureml-sdk[databricks]: http ://prntscr.com/mpk05g
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.