I am not able to launch spark-shell.
spark-shell --master yarn --conf spark.ui.port=12345
Getting the below error message when I try to connect as above
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(0x000070eb42c00000, 703594496, 0) failed; error=‘Cannot allocate memory’ (errno=12)
Please look into this issue.