Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 04-04-2017 02:30 AM - edited 09-16-2022 04:24 AM
was curious to check Zookeeper logs, navigated in /var/log/../zookeeper folder.
I see 2 files with xxxx.out and zookeeper-xxxx-xxxx.out files, also can't find any data in it. Can you please let me know where to locate log files for zookeeper and also can you please advise me if zookeeper will have log files created on a daily/hourly basis.
Created 04-04-2017 02:37 AM
1) Login to Ambari UI
2). Zookeeper -> Config -> Advanced zookeeper-log4j
3). Check if the "${zookeeper.log.dir}" is defined in the "log4j.appender.ROLLINGFILE.File" or not? If not then add it before the file name and restart zookeeper.
log4j.rootLogger=INFO, ROLLINGFILE
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log.
Also change the below line
log4j.rootLogger=INFO, CONSOLE
TO following so that we are instructing the Zookeeper to also log in the ROLLINGFILE appender apart from console.
log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE
.
Created 04-04-2017 02:37 AM
1) Login to Ambari UI
2). Zookeeper -> Config -> Advanced zookeeper-log4j
3). Check if the "${zookeeper.log.dir}" is defined in the "log4j.appender.ROLLINGFILE.File" or not? If not then add it before the file name and restart zookeeper.
log4j.rootLogger=INFO, ROLLINGFILE
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log.
Also change the below line
log4j.rootLogger=INFO, CONSOLE
TO following so that we are instructing the Zookeeper to also log in the ROLLINGFILE appender apart from console.
log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE
.
Created 06-03-2017 02:27 PM