简体   繁体   English

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

[英]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 问题吗?

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.

相关问题 azure databricks notebook - (Python) 如何传递元组列表的参数 - azure databricks notebook - (Python) how to pass argument which is list of tuples 在Azure ML上加载csv并在jupyter笔记本中设置参数 - load csv and set parameters in jupyter notebook on Azure ML 在 Azure ML Studio 笔记本中导入 MobilenetV2 模型时出错 - Error in importing MobilenetV2 model in Azure ML Studio notebook 从 Azure Databricks 读取 Excel 文件 - Reading Excel file from Azure Databricks 在 Azure 数据工厂中执行 Databricks Notebook 给出:对目标 Notebook1 的操作失败 - Executing Databricks Notebook in Azure Data Factory gives: Operation on target Notebook1 failed 从 Azure Databricks 读取 Azure Datalake Gen2 映像 - Read Azure Datalake Gen2 images from Azure Databricks 对 Azure 和 Databricks 寄予厚望 - Great Expectation with Azure and Databricks 将附加文本文件从数据块写入 azure adls gen1 - writing appending text file from databricks to azure adls gen1 从笔记本运行数据块作业 - Run databricks job from notebook .jpg 文件未从 blob 存储(Azure 数据湖)加载到数据块中 - .jpg file not loading in databricks from blob storage (Azure data lake)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM