gpt4 book ai didi

azure - SSL错误: HTTPSConnectionPool when registering ML model on Azure

转载 作者:行者123 更新时间:2023-12-02 07:22:03 26 4
gpt4 key购买 nike

请问我的 Databricks 实例位于 VNET 中。我正在尝试使用 Azure 容器实例 (ACI) 上的 Azure ML 工作区部署我的机器学习模型。

我能够创建 ML 工作区。当我尝试使用 Model.register() 注册模型时,出现 SSLERROR。

使用此代码 -

from azureml.core import Workspace
from azureml.core.model import Model
import azureml.core
from azureml.core.workspace import Workspace
from azureml.core.model import Model

from azureml.core import Workspace
ws = Workspace.create(name='myworkspace',
subscription_id='<azure-subscription-id>',
resource_group='myresourcegroup',
location='eastus'
)

model_reg = Model.register(model_path = “./model_dir”,
model_name = "ModelX",
workspace = ws)

在我尝试部署模型时找到下面的错误。

SSL 错误:

SSLError: HTTPSConnectionPool(host='eastus.experiments.azureml.net', port=443): Max retries exceeded with url: /discovery (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')")))
 

请注意,只有 Azure Databricks 位于 Azure 上的 VNET 中。如何解决该问题并将我的模型部署为 ACI 上的 Web 服务。

谢谢。

最佳答案

编辑:Here is some guidance我发现了如何将 Azure ML 服务与位于虚拟网络内的 Azure DataBricks 集群结合使用:

To use Azure Databricks in a virtual network with your workspace, the following requirements must be met:

  • The virtual network must be in the same subscription and region as the Azure Machine Learning workspace.
  • If the Azure Storage Account(s) for the workspace are also secured in a virtual network, they must be in the same virtual network as the Azure Databricks cluster.
  • In addition to the databricks-private and databricks-public subnets used by Azure Databricks, the default subnet created for the virtual network is also required.

For specific information on using Azure Databricks with a virtual network, see Deploy Azure Databricks in your Azure Virtual Network.

仍然可能是一个错误 - 我看到你已经reported the error产品团队可以看一下。同时,您尝试过本地调试吗? This guide很好地解决了常见的故障模式。

关于azure - SSL错误: HTTPSConnectionPool when registering ML model on Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63822867/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com