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.

Smartsense Log dir

Highlighted

Smartsense Log dir

I need to move SmartSense logs from /var/log to /data/disk1/log. In Ambari for the SmartSense component, I have updated "activity_log_dir" to be /data/disk1/log/smartsense-activity and "hst_log_dir" to be /data/disk1/log/hst. I then restarted all SmartSense components and most of the ".log" files are now going to /data/disk1/log, however some of the ".out" files are still going to /var/log. Does anyone know how I can fix this?

For instance, here are the logs going to /data/disk1/log/smartsense-activity:

activity-explorer.out
activity-explorer.log
activity-analyzer.log

Here are the logs still going to /var/log/smartsense-activity:

activity-analyzer.out

Here are the logs going to /data/disk1/log/hst/:

hst-server.log

Here are the logs still going to /var/log/smartsense-activity:

hst-agent.log
hst-server.log
hst-server.out
hst-gateway.log

(Also notice how hst-server.log is going to both /data/disk1/log and /var/log)

I am running Ambari 2.5.1, HDP 2.6.1, and SmartSense 1.4.0.2.5.1.0-159.

1 REPLY 1

Re: Smartsense Log dir

Contributor

This might be a bug in SmartSense. I think the out files are not managed by log4j.properties and hence it is still referencing the old location. Also, hst-server.log going in both location may be due to python/java split, looks like python is still using the old location as it doesn't understand log4j.properties.

Don't have an account?
Coming from Hortonworks? Activate your account here