0

我想为 R 远程会话设置机器学习服务器。不幸的是,它因“未知错误”而失败。这是我所做的以及我得到的输出。

设置

安装 Microsoft 机器学习服务器 9.3.0 - 离线安装 / 使用 R,不使用 Python。

适用于 Windows 的机器学习服务器的离线安装说明

安装步骤成功

MSI (s) (50:78) [09:50:07:880]:产品:Microsoft R Server -- 安装成功完成。

配置

R 远程会话的配置。

来自启动管理工具/CLI 以管理操作化配置的说明。

这里的输出az ml admin bootstrap

D:\R-Server\R_SERVER\o16n\Microsoft.MLServer.ComputeNode>az ml admin bootstrap
Admin password:
Confirm admin password:
Exception in thread stderr-stream:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\A1119231\.azure\cliextensions\azure-ml-admin-cli\azext_admin\commandline_process.py", line 272, in read_stream
    for output_line in stream:
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 0: character maps to <undefined>


D:\R-Server\PYTHON_SERVER\python.exe is not a program. Please install Python 3.5 there if you would like to use Python Functionality.


Starting Compute Node
FAILURE! Compute Node was unable to start.
Unknown Error
Starting Web Node
SUCCESS! Web Node started. (PID: 7100, Listening on URI: http://localhost:12800/)

[{'node': 'web', 'pid': '7100', 'state': 'running'}, {'node': 'compute', 'pid': '', 'state': 'not running'}]

login to "http://localhost:12800" successful.




Preparing to run diagnostics...

***********************
DIAGNOSTIC RESULTS:
***********************


Web Node Details:
  Logs: D:\R-Server\R_SERVER\o16n\Microsoft.MLServer.WebNode\logs:
  Configured Compute Node URIs:
    Configured Values: [http://localhost:12805/]

  Available compute nodes: 1

Compute Node Details:
  Health of 'http://localhost:12805/': fail
Error processing command AttributeError
'NoneType' object has no attribute 'items'

奇怪的是,即使在安装过程中没有选择它,它也会尝试执行 python.exe。

4

1 回答 1

1

问题是 Microsoft 机器学习服务器设置中的错误。...\o16n\Microsoft.MLServer.ComputeNode\appsettings.json如果您在设置过程中取消选择 Python,则将错误地创建配置文件。

你必须更换:

"Python": {},

经过

"Python": {
  "JupyterKernelGateway": {
    "Port": 8888,
    "Enabled": false,
    "KernelName": "MLO16N"
  },
  "SubProcess": {
    "Enabled": false,
    "Path": null
  }
},

然后计算节点将成功启动。

于 2019-08-19T12:17:15.813 回答