Sandbox virtual machine---"There is insufficient memory for the Java Runtime Environment to continue"

apache-spark

#1

Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x0000712901000000, 716177408, 0) failed; error=‘Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 716177408 bytes for committing reserved memory.
An error report file with more information is saved as:
/home/xxxxxx/hs_err_pid14209.log


#2

facing this issue when i’m trying to launch spark-shell --master-yarn , on hortonworks sandbox virtual box…