we have ambari cluster with HIVE service
the ambari configuration required to delete the files under /var/log/hive , if files with the same name are more then 30
from HIVE config
hive_log_maxbackupindex=30
but when we access the master machines , we see more then 60 files with the same name
example:
cd /var/log/hive
ls -ltr | grep hivemetastore | wc -l
61
ls -ltr | grep hiveserver2 | wc -l
61
we also remove the remark from the line log4j.appender.DRFA.MaxBackupIndex , and restart the hive service
but this not help us
please advice what could be the problem ?
example of files under /var/log/hive
-rw-r--r--. 1 hive hadoop 2752 Sep 2 19:05 hivemetastore-report.json
-rw-r--r--. 1 hive hadoop 2756 Sep 2 19:05 hiveserver2-report.json
-rw-r--r--. 1 hive hadoop 636678 Sep 2 23:58 hiveserver2.log.2017-09-02
-rw-r--r--. 1 hive hadoop 1127874 Sep 2 23:59 hivemetastore.log.2017-09-02
-rw-r--r--. 1 hive hadoop 2369407 Sep 3 23:58 hiveserver2.log.2017-09-03
.
.
.
.
Michael-Bronson