You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by ZongtianHou <zo...@icloud.com.INVALID> on 2018/12/08 12:38:14 UTC

How to enable log of jdk library called by namenode

Hi, everyone
I am writing a hdfs client to access hdfs and need to look up the log of namenode. The log of namenode is turned to DEBUG and is ok, However, the log of method called by namenode in jdk can not be seen, like dohandshake2 in GssKrb5Server.class, I have turned the logging level to FINE in JAVA_HOME/jre/lib/logging.properties as below. Is there other properties needed to be changed for looking up the log? Any hint will be appreciated?

if (logger.isLoggable(Level.FINE)) {
    logger.log(Level.FINE,
        "KRB5SRV06:Supported protections: {0}; recv max buf size: {1}",
        new Object[]{new Byte(allQop),
                     new Integer(recvMaxBufSize)});
}


# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers.  For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= FINE 
libosxkrb5.dylib = FINE