Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how to change log folder locations and log sizes

Solved Go to solution

how to change log folder locations and log sizes

Explorer

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: how to change log folder locations and log sizes

Champion

@NewBee22

 

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

1 REPLY 1
Highlighted

Re: how to change log folder locations and log sizes

Champion

@NewBee22

 

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