Cannot allocate memory’ (errno=12)

[prasadgt02@gw03 ~]$ spark-shell --master yarn \

–conf spark.ui.port=12345
–num-executors 6
–executor-core 2
–executor-memory 2g
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(0x0000000671d00000, 350748672, 0) failed; error=‘Cannot allocate memory’ (errno=12)
[prasadgt02@gw03 ~]$ spark-shell --master yarn --conf spark.ui.port=12345 --num-executors 6 --executor-core 2 --executor-memory 2G
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(0x0000000671d00000, 350748672, 0) failed; error=‘Cannot allocate memory’ (errno=12)

Hi @Pgangadharth
Can you try now and let us know?

@Pgangadharth Issue resolved. Due to high usage of resources caused the error. Now you can practice.

I’m facing the above error. I’m not getting the spark web console link as mentioned in the CCA175 videos. Please assist

Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default

Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
Welcome to
____ __
/ / ___ / /
\ / _ / _ `/ __/ '/
/
/ .__/_,// //_\ version 1.6.3
/
/

Using Scala version 2.10.5 (OpenJDK 64-Bit Server VM, Java 1.8.0_222)
Type in expressions to have them evaluated.
Type :help for more information.
spark.yarn.driver.memoryOverhead is set but does not apply in client mode.
Spark context available as sc.
SQL context available as sqlContext.