Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Nodes fail to start when loading package from CRAN #360

Open
benscarlson opened this issue Jul 22, 2019 · 1 comment
Open

Nodes fail to start when loading package from CRAN #360

benscarlson opened this issue Jul 22, 2019 · 1 comment

Comments

@benscarlson
Copy link

Hello,

I am able to run the sample "getting started" code but when I attempt to load a package from CRAN, my nodes fail to start. Can anyone show me what I might be doing wrong?

Here is my cluster file. This is the same file from "getting started" but I've included the "hypervolume" package.

{
  "name": "hv",
  "vmSize": "Standard_D2_v2",
  "maxTasksPerNode": 2,
  "poolSize": {
    "dedicatedNodes": {
      "min": 0,
      "max": 0
    },
    "lowPriorityNodes": {
      "min": 5,
      "max": 10
    },
    "autoscaleFormula": "QUEUE"
  },
  "containerImage": "rocker/tidyverse:latest",
  "rPackages": {
    "cran": ["hypervolume"],
    "github": [],
    "bioconductor": []
  },
  "commandLine": [],
  "subnetId": ""
}

I run the following:

library(doAzureParallel)
setCredentials('credentials.json')
cluster <- makeCluster("cluster.json")

But all my nodes fail to boot. Here is an example:

1: In .showNodesFailure(nodesWithFailures) :
  The following 1 nodes failed while running the start task:
tvm-2487789449_4-20190722t172941z-p

This package has some other dependencies, including rgeos which can be finicky to install. I've tried specifying just rgeos by itself but that also fails. Is there a better way to install packages?

Thank you!

@zerweck
Copy link

zerweck commented Aug 5, 2019

From my personal experience: When the package installation might be a problem, maybe try creating a custom docker image with your packages pre-installed as described here https://github.com/Azure/doAzureParallel/blob/master/docs/33-building-containers.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants