This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Description
Spark only supports integral value for spark.executor.cores and will throw a NumberFormatException if a fractional value like 0.5 is used. Kubernetes, however, does support requesting a fraction of a CPU core, e.g., 0.1 or 100m. A potential solution is to for Spark to accept a fractional value if running on Kubernetes and round up to 1 otherwise.