Description
When dynamic allocation is enabled in yarn with default parameter, numExecutors will be set to 0, but this will be failed in the following valideArgs(), here numExecutors must > 0, but for dynamic allocation, this executor number can be 0 (with default setting). The exception is shown as below:
Exception in thread "main" java.lang.IllegalArgumentException: You must specify at least 1 executor!