我正在尝试在Ubuntu终端上运行spark,但出现以下错误

$Using /usr/lib/jvm/java-7-oracle as default JAVA_HOME.
$Note, this will be overridden by -java-home if it is set.
$Picked up _JAVA_OPTIONS: -Xmx10M -Xms2048M
$Error occurred during initialization of VM
$Incompatible minimum and maximum heap sizes specified


请帮助,在此先感谢。

最佳答案

-Xmx10M -Xms2048M

第一个参数是最大堆大小,第二个参数是您要设置的开始。最大值应大于开始。

10-07 16:19