在WSL中配置本地Azure ML目标?

在WSL中配置本地Azure ML目标?,azure,azure-machine-learning-service,Azure,Azure Machine Learning Service,目前,我没有机会在WSL中运行本地计算目标。我可以愉快地执行我的培训脚本,我可以执行我的驱动程序,但作业永远不会离开起始状态。我在防火墙中启用了“节点”——不确定是否相关——它同时弹出 驱动程序代码: ws = Workspace.from_config() experiment = Experiment(workspace=ws, name='mnist-training-local') env = Environment("system-manag

目前,我没有机会在WSL中运行本地计算目标。我可以愉快地执行我的培训脚本,我可以执行我的驱动程序,但作业永远不会离开起始状态。我在防火墙中启用了“节点”——不确定是否相关——它同时弹出

驱动程序代码:

    ws = Workspace.from_config()
    experiment = Experiment(workspace=ws, name='mnist-training-local')
    
    env = Environment("system-managed-env")
    env.python.user_managed_dependencies = True

    config = ScriptRunConfig(source_directory='src', script='hello.py', environment=env)

    run = experiment.submit(config)
    run.wait_for_completion(show_output=True)
有一个诊断链路输出-

"data_container_id": "dcid.mnist-training-local_1605046048_2a328e04",
    "diagnostics_uri": "https://eastus2.experiments.azureml.net/execution/v1.0/subscriptions/c14a37bd-a658-463c-9d44-9a9326fe5fbe/resourceGroups/TutorialResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TutorialWorkspace/experiments/mnist-training-local/runId/mnist-training-local_1605046048_2a328e04/diagnostics"
但链接从未激活

通过门户查看作业会导致作业处于“启动”状态。就好像WSL和Azure之间存在防火墙问题,但我不确定在哪里

不过,我已经尝试过完全阻止Windows Defender-运气不好。我怀疑有一个传入连接没有正确路由到WSL

“顶部”显示系统上没有实际活动,系统只是。。。等待。永远

这是以下Azure ML笔记本的第一步:

用户管理的预需求

事实上,我可以从DOS(Powershell)终端提交:

Web View: https://ml.azure.com/experiments/mnist-training-local/runs/mnist-training-local_1605107830_4f84d648?wsid=/subscriptions/c14a37bd-a658-463c-9d44-9a9326fe5fbe/resourcegroups/TutorialResourceGroup/workspaces/TutorialWorkspace

Streaming azureml-logs/60_control_log.txt
=========================================

[2020-11-11T15:17:14.044950] Using urllib.request Python 3.0 or later
Streaming log file azureml-logs/60_control_log.txt
Running: ['cmd.exe', '/c', 'C:\\Users\\allan\\AppData\\Local\\Temp\\azureml_runs\\mnist-training-local_1605107830_4f84d648\\azureml-environment-setup/conda_env_checker.bat']

<snip>
After variable expansion, calling script [ hello.py ] with arguments: []

Script type = None
Hello world!
Starting the daemon thread to refresh tokens in background for process with pid = 21880
Web视图:https://ml.azure.com/experiments/mnist-training-local/runs/mnist-training-local_1605107830_4f84d648?wsid=/subscriptions/c14a37bd-a658-463c-9d44-9a9326fe5fbe/资源组/教程资源组/工作区/教程工作区
流式azureml日志/60_control_log.txt
=========================================
[2020-11-11T15:17:14.044950]使用urllib.request Python 3.0或更高版本
流日志文件azureml logs/60_control_log.txt
运行:['cmd.exe','/c',c:\\Users\\allan\\AppData\\Local\\Temp\\azureml\u runs\\mnist-training-Local\u 1605107830\u 4f84d648\\azureml环境设置/conda\u env\u checker.bat']
变量展开后,使用参数调用脚本[hello.py]:[]
脚本类型=无
你好,世界!
启动守护进程线程以在后台刷新pid=21880的进程的令牌

提前感谢。

1)当您转到ml.azure.com并导航到“系统管理的环境”实验时,是否可以看到运行情况?如果您可以在那里看到运行,那么您应该能够在“日志”选项卡下看到一些流输出。2) 您是否能够通过DOS终端提交跑步记录而没有问题?@Anderswanson谢谢!DOS终端问题不是我想到的。1) 是的,我能。运行显示状态为“开始”且从未完成。2) 事实上,我可以从DOS终端提交,并且运行成功完成。这确实说明了WSL虚拟机中的一些东西,但是没有日志。