Hi, Thanks for your help!
Sandy, I had a bit of trouble finding the spark.executor.cores property. (It wasn't there although its value should have been 2.) I ended up throwing regular expressions on scala.util.Properties.propOrElse("sun.java.command", ""), which worked surprisingly well ;-) Thanks Tobias