Can't access spark-shell


I can’t access spark-shell. I get the following

spark-shell --master yarn \

–conf spark.ui.port=12678
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(0x00000003d5600000, 702021632, 0) failed; error=‘Cannot allocate memory’ (errno=12)


@B_Speer Issue resolved. Now you can access the spark shell.