Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5384

Improve error message for missing resources file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Minor
    • Resolution: Unresolved
    • 0.28.1
    • None
    • None
    • Centos 7

    • Patch

    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":

      { "value": 0.5 }

      },
      {
      "name": "mem",
      "type": "SCALAR",
      "scalar":

      { "value": 512 }

      }
      ]

      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.

      Attachments

        Activity

          People

            Kris-Paprocki Kris Paprocki
            hokiegeek2 John Yost
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: