How to start Apache Zeppelin in debug mode?

I need to run Zeppelin in debug mode in order to add breakpoints in Intellij for remote code debugging.

How can I do it? There is no documentation on this issue.

+4
source share
3 answers

You can set this property.

In zeppelin-env.sh

export ZEPPELIN_MEM = "- Xdebug -Xnoagent -Xrunjdwp: transport = dt_socket, server = y, suspend = n, address = 8111"

Similarly you can do for interpreter-mem

Only catch can only be remotely debugged by one intrepreter process, since there are no unique properties for each interpreter.

+3

. .

+2

zeppelin-env.sh, , JVM .

$ZEPPELIN_HOME/conf/zeppelin-env.sh :

export ZEPPELIN_MEM="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8111"

, zeppelin-env.sh, Apache Zeppelin 8111.

, envrionment ZEPPELIN_INTP_MEM. , , - .

IntelliJ IDE Apache Zeppelin

Run- > Edit Configuration IntelliJ IDE: screenshot 1

IntelliJ

Go to Run-> View Breakpoints Enable "Java Exclusion Checkpoints" Set the condition and add the following condition:

!(this instanceof java.lang.ClassNotFoundException || 
  this instanceof java.util.MissingResourceException || 
  this instanceof javax.naming.NoInitialContextException || 
  this instanceof java.lang.NoSuchMethodException)

You should now have exception control points, for example: screenspoints screenshot

Full credit belongs to Luciano Resende - see the full article here: http://lresende.blogspot.com/2016/08/launching-apache-zeppelin-in-debug-mode.html

+1
source

Source: https://habr.com/ru/post/1609267/


All Articles