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.

Zookeeper logs

Solved Go to solution
Highlighted

Zookeeper logs

Expert Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Zookeeper logs

Super Mentor

@Viswa

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

.

2 REPLIES 2

Re: Zookeeper logs

Super Mentor

@Viswa

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

.

Re: Zookeeper logs

Super Mentor

@Viswa

Were you able to find the Zookeeper logs?

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