最近在学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