Is it possible to reconfigure Dr. Elephant so the logs are written under /var/log rather then to the default /usr/hdp/current/dr-elephant/logs location? Is creating a symbolic link enough?
Change log4j.appender.FA.File in ./conf/log4j.properties:
log4j.appender.FA.File=/var/log/dr-elephant/dr_elephant.log
Add the following parameters to jvm_args in ./app-conf/elephant.conf:
-Dlog4j.configuration=file://$DRELEPHANT_HOME/conf/log4j.properties
Should be like:
jvm_args="-Dlog4j.configuration=file:///var/lib/dr-elephant-2.1.7/conf/log4j.properties -mem 1024 -J-Xloggc:$project_root/logs/dr-gc.date +'%Y%m%d%H%M' -J-XX:+PrintGCDetails"
Is it possible to reconfigure Dr. Elephant so the logs are written under /var/log rather then to the default /usr/hdp/current/dr-elephant/logs location? Is creating a symbolic link enough?
ln -s /usr/hdp/current/dr-elephant/logs /var/log/dr-elephant