I have installed Zeppelin 0.7.1
. When I tried to execute the Example spark program(which was available with Zeppelin Tutorial
notebook), I am getting t
On AWS EMR the issue was memory. I had to manually set lower value for spark.executor.memory
in the Interpeter for Spark using the UI of Zeppelin.
The value varies based on your instance size.
The best is to check the logs located in the /mnt/var/log/zeppelin/
folder.
In my case the underlying error was:
Error initializing SparkContext.
java.lang.IllegalArgumentException: Required executor memory (6144+614 MB) is above the max threshold (6144 MB) of this cluster! Please check the values of 'yarn.scheduler.maximum-allocation-mb' and/or 'yarn.nodemanager.resource.memory-mb'.
That helped me understand why it was failing and what I can do to fix it.
Note:
This happened because I was starting an instance with HBase which limits the available memory. See the defaults for instance size here.