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

时间:2019-02-11 23:51:51

标签: python-3.x azure-machine-learning-studio azure-databricks

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

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

我试图执行交互式登录以蔚蓝访问工作空间,但是运行笔记本时出现以下错误。笔记本是用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问题吗?

3 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

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

答案 2 :(得分:0)

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