Search code examples
apache-zeppelin

Apache Zeppelin: each page takes minutes to load


I have a fresh Zeppelin download.

First I ran it via docker, everything is good. Then I stopped the Docker containers to clean it up. I did not save any notebooks.

Next I ran Zeppelin locally via

zeppelin-daemon.sh start

And I immediately noticed that the UI was extremely slow to load. Upon checking the network tab I find each resource taking 30-60 seconds to load, resulting in entire page taking 3-5 minutes.

How do I fix this, or even start to figure out what's wrong?


Solution

  • These tickets and another SO thread solved my problem.

    Without digging deeper, it appears some JVM-based web server is taking an unreasonable amount of time finding localhost. The quick hack is just to add loca hostname to hosts file, i.e.

    127.0.0.1   localhost <mbpro.local>
    ::1         localhost <mbpro.local>
    

    use the hostname command to find out what's the right hostname, and replace <mbpro.local>.

    https://issues.apache.org/jira/browse/ZEPPELIN-2948

    https://issues.apache.org/jira/browse/ZEPPELIN-5023

    Jvm takes a long time to resolve ip-address for localhost