You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both a template and a real configuration log4j files are installed through the RPM.
The real log4j file points to ./logs/flume.log, which is the the path Cygnus tries to write logs, issuing the described error (the cygnus user running Cygnus has no permissions to wirte at ./).
The init.d file for Cygnus runs this command CYGNUS_COMMAND="${FLUME_EXECUTABLE} agent -p ${ADMIN_PORT} --conf ${CONFIG_FOLDER} -f ${CONFIG_FILE} -n ${AGENT_NAME} -Dflume.log.file=${LOGFILE_NAME} &>> /var/log/cygnus/${LOGFILE_NAME} & echo \$! > ${CYGNUS_PID_FILE}", which tries to change the log file name, but not the path. Since the real log4j file points to ./logs/flume.log, this is changed to /logs/cygnus.log, which issues an error as well.
The solution is to remove the real log4j file and ecouraging people to instantiate the log4j template. That will use by default /var/log/cygnus/cygnus.log and /var/log/cygnus/LOGFILE_NAME if modifying the LOGFILE_NAME property in cygnus_instance_<id>.conf.
Description: http://stackoverflow.com/questions/34180456/why-wont-cygnus-keep-running
The text was updated successfully, but these errors were encountered: