java.lang.IllegalArgumentException: No resource called cpus in [name: "mem" type: SCALAR scalar { value: 2067.0 } role: "*" , name: "disk" type: SCALAR scalar { value: 900.0 } role: "*" , name: "ports" type: RANGES ranges { range { begin: 31000 end: 32000 } } role: "*" ]

github.com | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    eco-release-metadata/RELEASENOTES.1.2.0.md at master · aw-was-here/eco-release-metadata · GitHub

    github.com | 5 months ago
    java.lang.IllegalArgumentException: No resource called cpus in [name: "mem" type: SCALAR scalar { value: 2067.0 } role: "*" , name: "disk" type: SCALAR scalar { value: 900.0 } role: "*" , name: "ports" type: RANGES ranges { range { begin: 31000 end: 32000 } } role: "*" ]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No resource called cpus in [name: "mem" type: SCALAR scalar { value: 2067.0 } role: "*" , name: "disk" type: SCALAR scalar { value: 900.0 } role: "*" , name: "ports" type: RANGES ranges { range { begin: 31000 end: 32000 } } role: "*" ]

      at org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend.org$apache$spark$scheduler$cluster$mesos$CoarseMesosSchedulerBackend$$getResource()
    2. Spark
      CoarseMesosSchedulerBackend$$anonfun$resourceOffers$1.apply
      1. org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend.org$apache$spark$scheduler$cluster$mesos$CoarseMesosSchedulerBackend$$getResource(CoarseMesosSchedulerBackend.scala:236)
      2. org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend$$anonfun$resourceOffers$1.apply(CoarseMesosSchedulerBackend.scala:200)
      3. org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend$$anonfun$resourceOffers$1.apply(CoarseMesosSchedulerBackend.scala:197)
      3 frames
    3. Scala
      AbstractIterable.foreach
      1. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      2. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      3. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      4. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      4 frames
    4. Spark
      CoarseMesosSchedulerBackend.resourceOffers
      1. org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend.resourceOffers(CoarseMesosSchedulerBackend.scala:197)
      1 frame