hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuldeep Kulkarni (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-7534) how to enable namenode GC logging
Date Tue, 16 Dec 2014 19:30:13 GMT
Kuldeep Kulkarni created HDFS-7534:
--------------------------------------

             Summary: how to enable namenode GC logging
                 Key: HDFS-7534
                 URL: https://issues.apache.org/jira/browse/HDFS-7534
             Project: Hadoop HDFS
          Issue Type: Task
            Reporter: Kuldeep Kulkarni


Hey Team,

Could you please let me know how to enable GC logging for hadoop namenode. ?

I tried below method :

modified HADOOP_NAMENODE_OPTS in /etc/hadoop/conf/hadoop-env.sh as below and restarted namenode
(HA is configured on cdh 4.7.0 )

*before modification :*

{code}
export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS}
-Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS";
{code}

*After modification:*

{code}
export HADOOP_NAMENODE_OPTS="-Xloggc:%HADOOP_LOG_DIR%/gc-namenode.log -verbose:gc -XX:+PrintGCDetails
-XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS}
-Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS";
{code}

this method is not working :( 

could you please help me on this.


Thanks,
Kuldeep




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message