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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via github.com by Unknown author, 1 year ago
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: "*" ]
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(CoarseMesosSchedulerBackend.scala:236)
at org.apache.spark.scheduler.cluster.mesos.CoarseMesosSchedulerBackend$$anonfun$resourceOffers$1.apply(CoarseMesosSchedulerBackend.scala:200)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.