More log from Helix controller in BRMS cluster

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BRMS
    • 6.1.0

Issue

  • Where can I find Helix controller log?

Resolution

Helix controller log goes to the file path which you write when you execute run-helix-controller.sh.

for example)

./run-helix-controller.sh --zkSvr server1:2181,server2:2181,server3:2181 --cluster brms-cluster 2>&1 > /tmp/controller.log &

You can change the log file path. In addition, if you add a timestamp to the file name, it would help to avoid overwriting the log file.

for example)

./run-helix-controller.sh --zkSvr localhost:2181 --cluster brms-cluster 2>&1 > ./controller.`date +%Y%m%d%H%M%S`.log &

You can also change the log level in $HELIX_HOME/conf/log4j.properties

for example)

log4j.logger.org.I0Itec=INFO
log4j.logger.org.apache=INFO

INFO level will generate lots of logs so please confirm the disk space of your server.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments