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

debug a custom jar in flume-ng for a remote cloudera

Highlighted

debug a custom jar in flume-ng for a remote cloudera

New Contributor

Hi,

 

I have a remote cloudera which I access through VPN. I have created a custom jar (a serializer) but I would like to degug it via intellij, how can I configure intellij to debug my jar?

 

It is time consumming to rely on log and deploy and test each time!

 

 

1 REPLY 1

Re: debug a custom jar in flume-ng for a remote cloudera

Master Guru
Ideally, one could utilise the "Java Configuration Options for Flume Agent" field in CM to specify an "-agentlib" option to the JDK to allow you to configure a remote debugger port/service on the Flume agent JVM, but Flume accepts only -D and -X (w/ -XX) options. So you'll need to use the JDK 1.4 style of options as shown at http://stackoverflow.com/a/22631355/1660002, to configure your remote debugging endpoint within Flume configuration. Once done, configure your Intellij in the same way (to connect to the chosen port) and hopefully you'll be able to remote-debug your plugin.

It might also be easier to just log things, or run a local Flume-NG instance.
Don't have an account?
Coming from Hortonworks? Activate your account here