[SPARK-1507] specify num of cores for AM