use "--total-executor-cores" rather than "--cores" after spark-shell