最近在学spark,尝试自己编译,在一台VM上遇到了:
[root@localhost spark-1.1.0]# ./sbt/sbt assembly
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
解决方法:
./sbt/sbt -mem512 assembly
问题解决。
参考:apache-spark-user-list.1001560.n3.nabble.com/quot-sbt-sbt-run-quot-command-returns-a-JVM-problem-td5157.html
本文讨论了在使用Spark时遇到的编译过程中JVM内存不足的问题,并提供了解决方案。通过调整sbt命令参数,成功解决了内存分配问题。
3732

被折叠的 条评论
为什么被折叠?



