Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
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 :
export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS";
After modification:
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";
this method is not working
could you please help me on this.
Thanks,
Kuldeep