当我用 --master yarn-cluster --num-executors 7 --driver-memory 10g --executor-memory 16g --executor-cores 5 执行spark-submit命令时,我得到以下错误,我不知道在哪里更改堆大小,我怀疑Yarn配置文件在哪里,请指教

error

Invalid maximum heap size: -Xmx10g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.**