Details
Description
Attempting to specify resources file via --resources=/etc/mesos-slave/small-slave-config.json threw the following error:
Failed to determine slave resources: Bad value for resources, missing or extra ':' in /etc/mesos-slave/small-slave-config.json
I confirmed I had valid JSON:
[
{
"name": "cpus",
"type": "SCALAR",
"scalar":
},
{
"name": "mem",
"type": "SCALAR",
"scalar":
}
]
In actuality, I misread to docs with my file pattern. Once I changed to resources=file:///etc/mesos-slave/small-slave-config.json the mesos slave started up fine. Just need a missing file check and corresponding error message to fix this.