Getting NullPointerException when running Spark Code in Zeppelin 0.7.1

后端 未结 9 994
梦毁少年i
梦毁少年i 2021-02-05 10:59

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

9条回答
  •  别跟我提以往
    2021-02-05 11:33

    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.

提交回复
热议问题