Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Remote debug Apache Atlas Admin

Remote debug Apache Atlas Admin

I want to remote debug Apache Atlas admin in Eclipse. Where exactly I have to set JVM debug options in Apache Atlas?


Re: Remote debug Apache Atlas Admin


@Ayub Khan could you please share your thoughts on this.


Re: Remote debug Apache Atlas Admin


1) Start Atlas in debug mode

first you want to add extra JVM options in the startup script , so in replace this line

DEFAULT_JVM_OPTS="-Dlog4j.configuration=atlas-log4j.xml -server"

with this

DEFAULT_JVM_OPTS="-Dlog4j.configuration=atlas-log4j.xml -server -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=54371,server=y,suspend=y "

Now, when you start Atlas, it will hang until you connect with the debugger (because of the suspend=y).

2) connect from Eclipse remote debugger

Make sure you have imported the Atlas project into Eclipse based on this document:

Then create a new debug configurations under the following menu: /Run/Debug Configurations...

Make sure the port is set to the same above (54371) and connection type is Standard (socket attach)

Use Eclipse JDT launcher.

Don't have an account?
Coming from Hortonworks? Activate your account here