i'm using spark2.0.1 and tests in local mode.
i have a driver application like the following:
object AnnoSp {
def main(args: Array[String]) {
val spark = SparkSession.builder
.config("spark.executor.memory", "2000g")
.config("spark.driver.memory", "4000g")
.master("local[*]")
.config("spark.app.name", "Anno BDG")
.appName("Anno BDG")
.getOrCreate()
}
}
the testing node's RAM is only 4G , and I have set the spark.executor.memory as 4000g. I expected there is an exception of IllegalArgumentException when this application is submitted to spark ,but the application run successfully.why?