【问题标题】:Install R on the nodes for Azure batch services在 Azure 批处理服务的节点上安装 R
【发布时间】:2021-06-07 09:37:38
【问题描述】:

我可以使用 Power shell 创建批处理服务资源,如下所述:https://docs.microsoft.com/en-us/azure/batch/batch-powershell-cmdlets-get-started

我想在节点上运行 R 脚本,我需要在节点上安装 R,因为没有可用的 VM(Windows 或 linux)安装 R。我目前已经通过手动登录到虚拟机来安装 R。但我想创建批处理资源,然后在运行 R 代码之前最好通过脚本在节点上安装 R。我该怎么办?

【问题讨论】:

    标签: r virtual-machine pool azure-batch


    【解决方案1】:

    有 4 种主要方法可以将必要的软件加载到虚拟机上:

    1. 创建start task 以及可能的resource files 以根据您的要求准备计算节点。
    2. 创建一个custom image,其中已经包含您所有预配置的软件。
    3. 使用containers,而不是直接在计算节点上加载软件。
    4. 使用application packages

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-29
      • 2018-03-26
      • 2012-09-20
      • 2019-04-28
      • 1970-01-01
      • 2013-02-25
      • 1970-01-01
      • 2019-04-15
      相关资源
      最近更新 更多