Remote Debug Custom Source and Flume Log Logging

I have my own source for my Flume agent (version 1.5.0) and I want to debug it. This is actually Twitter's own source, from the Cloudera example here . I have a number of questions:

(1) Is it possible to remotely debug the Flume source (written in Java) when starting the Flume agent?

Also, when I start the agent, I have this parameter

-Dflume.root.logger=DEBUG,console

but it seems that logger.debug

which I have in the Java source does not appear in the terminal. (2) How do I make my magazines? What's missing in my Flume configuration or registration?

(3) If I can make the logs, how can I print only the console output of my Flume source to a file logger.debug

, excluding the Flume agent's own logs?

Thank.

+3


source to share


1 answer


Use the following arguments to run JVM flume agent, as described in reference fooobar.com/questions/35192 / ... .

EX- For new JDK (1.8 for me):



-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=6006

And you can connect to that remote port in the address field using IntelliJ or any other remote debug IDE

0


source







All Articles