- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to change log folder locations and log sizes
- Labels:
-
Cloudera Manager
Created 02-01-2018 01:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
it seems the default log location is under /var/log
How can I change this after the installation. Also I want to reduce the amount of logging.
Otherwise my disk will run out of space.
Created 02-01-2018 01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For your first question, Go to Cloudera Manager -> HDFS -> Configuration -> search for 'Log Directory' -> change the dir path wherever applicable
For your second question, Go to Cloudera Manager -> HDFS -> Configuration -> search for 'maximum log' -> Here you can change both Max log file size & Number of log files to retain.
Ex:
Maximum Audit Log File Size - 100 Mib (You can reduce the size)
Number of Audit Logs to Retain - 10 (you can reduce how many logs to retain)
Finally, you can do this for all the applicable services like yarn, etc
Created 02-01-2018 01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For your first question, Go to Cloudera Manager -> HDFS -> Configuration -> search for 'Log Directory' -> change the dir path wherever applicable
For your second question, Go to Cloudera Manager -> HDFS -> Configuration -> search for 'maximum log' -> Here you can change both Max log file size & Number of log files to retain.
Ex:
Maximum Audit Log File Size - 100 Mib (You can reduce the size)
Number of Audit Logs to Retain - 10 (you can reduce how many logs to retain)
Finally, you can do this for all the applicable services like yarn, etc
