2
votes

Connectez-vous à l'espace de travail Azure ML à partir du bloc-notes Azure Databricks

J'écris un bloc-notes python dans un cluster Azure Databricks pour effectuer une expérience Azure Machine Learning. J'ai créé un espace de travail Azure ML et instancié un objet d'espace de travail dans mon bloc-notes comme suit:

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'

J'essaie d'effectuer une connexion interactive à azure pour accéder à l'espace de travail mais lorsque j'exécute le bloc-notes obtenez l'erreur suivante. le cahier est écrit en python

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

Quelqu'un pourrait-il m'aider à résoudre ce problème? Est-ce vraiment un problème OpenSSL?


0 commentaires

3 Réponses :



0
votes

Essayez d'utiliser pip install azureml-sdk [databricks] pour installer le SDK sur le cluster Azure Databricks. Le pip extra garantit que certaines dépendances sont épinglées aux versions correctes.


0 commentaires

0
votes

Vous devez installer la bibliothèque azureml-sdk [databricks] sur votre cluster. Pas azureml-sdk, mais azureml-sdk [databricks]: http://prntscr.com/mpk05g


0 commentaires