Tasktracker and job t     racker are started now using hadoop-daemon.sh
file. In this file log created as displayed below:

 

log=$HADOOP_LOG_DIR/`hostname`-$command.log

.......................

nohup bin/hadoop $command "$@" >& "$log" < /dev/null &

................

 

Are there any ways to rotate these logs ?

 

It is impossible to use logrotate because after start logrotate
recording to logs files is stoped.

 

Example logrotate conf:

 

"/spider/logs/*.log" {

size=10M

create

rotate 100

missingok

nomail

compress

postrotate

endscript

}

Reply via email to