Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-21-2019 02:39 AM
Hi,
there are many log files in /var/log/hadoop/hdfs, and file name like hdfs-audit.log.2018-06-01,
and some file name like hadoop-hdfs-namenode-hostname are very large.
may i delete it all?
(this host running namenode, ranger, datanode flume and node manager.)
and if any configure can setting those log as auto cycling or auto delete?
Thanks
Created 01-21-2019 09:49 AM
Logs for certain period is always useful to retain so that in case of any analysis we have the logs to verify if anything went unexpected.
Some of the logs like "hdfs-audit.log" are important as they contains all the auditing data of HDFS access.
However if you want to delete old data Logs then you can delete them as it wont cause any service interruption.
But the best approach will be to implement the Log4j Extra functionality for your logging so that the old logs will be automatically compressed and saved + rolled. As those logs are basically Text files so the compression happens greatly and compressed log size is 10-15 times lower than the original logs.
Please refer to the following article to know more about it:
Created 01-21-2019 09:49 AM
Logs for certain period is always useful to retain so that in case of any analysis we have the logs to verify if anything went unexpected.
Some of the logs like "hdfs-audit.log" are important as they contains all the auditing data of HDFS access.
However if you want to delete old data Logs then you can delete them as it wont cause any service interruption.
But the best approach will be to implement the Log4j Extra functionality for your logging so that the old logs will be automatically compressed and saved + rolled. As those logs are basically Text files so the compression happens greatly and compressed log size is 10-15 times lower than the original logs.
Please refer to the following article to know more about it:
Created 01-22-2019 07:28 AM
Thanks for your reply, i deleted some logs to recover Namenode service status to running (service can't start when log space full),
and my logs over 50GB per year, so i will study log4j extra to save space usage.