FAQ
Hello,

I am a newbie dev. I would like to generate a call graph for Hadoop inorder
to understand the control flow better. Is there something that an help me do
this or merely changing the log level to debug alone might help ?

Thanks,
Aishwarya

Search Discussions

  • Steve Loughran at Jun 6, 2011 at 12:18 pm

    On 05/27/2011 11:58 PM, Aishwarya Venkataraman wrote:
    Hello,

    I am a newbie dev. I would like to generate a call graph for Hadoop inorder
    to understand the control flow better. Is there something that an help me do
    this or merely changing the log level to debug alone might help ?

    Thanks,
    Aishwarya
    There's a trick Log4J where you can get the logger to push out the class
    and method making a log call -add

    %c.%M()

    to your logg pattern, e.g

    log4j.appender.stdout.layout.ConversionPattern=%d{DATE} %-5p [%t]
    %c.%M() -- %m%n

    Nobody uses this in production as it causes a stack trace to be created
    for every logging op, but it's good for tracking down problems, or here,
    getting an understanding of what goes where

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedMay 27, '11 at 10:59p
activeJun 6, '11 at 12:18p
posts2
users2
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase