Support Questions
Find answers, ask questions, and share your expertise

failure in starting zookeeper service

Highlighted

Re: failure in starting zookeeper service

Explorer

Dear Namit Maheshwari

I solved all the errors, zookeeper starts for about 10 seconds and then stops. There are no logs in the log directory. I tried to start zookeeper from command line, but I get this

[root@n12 ~]# /usr/hdp/2.5.0.0-1245/zookeeper/bin/zkServer.sh start
JMX enabled by default
Using config: /etc/zookeeper/zoo.cfg
Starting zookeeper ...
STARTED
[root@n12 ~]# Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

Highlighted

Re: failure in starting zookeeper service

Explorer

Please how did you solve the permission problems

Highlighted

Re: failure in starting zookeeper service

Super Mentor

@shadi Balloul

As you mentioned that "There are no logs in the log directory." That could be because of missing "${zookeeper.log.dir}" prefix.

Please check if you have added the "${zookeeper.log.dir}" to zookeeper log file as following in your ambari config.

Ambari UI --> "Zookeeper" --> "Configs" --> Advanced --> "Advanced zookeeper-log4j"

.

CHANGE from:

log4j.appender.ROLLINGFILE.File=zookeeper.log

TO Following:

log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log

.

After making the changes restart the zookeeper service and then please share the log "${zookeeper.log.dir}/zookeeper.log"

.

Highlighted

Re: failure in starting zookeeper service

Explorer

I get this error while trying to start zookeeper:

/usr/hdfp/2.6.3-235/zookeeper/bin/zkServer.sh start

/zkServer.sh: Permission denied

Highlighted

Re: failure in starting zookeeper service

Explorer

Dear @Bangalore

I think there are no logs because Zookeeper doesn't start. Any way, I tried to change the property as you recommended. I copied the value ${zookeeper.log.dir}/zookeeper.log, I clicked overwrite, then it told that there is no configuration group and I have to create new one. I created new one but i get this error

Consistency Check Failed The configuration changes could not be validated for consistency due to an unknown error. Your changes have not been saved yet. Would you like to proceed and save the changes?

13270-zk.png

The configuration changes could not be validated for consistency due to an unknown error. Your changes have not been saved yet. Would you like to proceed and save the changes?

Re: failure in starting zookeeper service

I could at least start Zookeeper by doing this (change for your environment's exact paths):

cd /usr/hdp/2.5.3.0-37/zookeeper; mkdir bin; cd bin; cp /var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5/package/files/* .; ln -s /usr/hdp/2.3.0-37/zookeeper /usr/hdp/current/zookeeper-server

Source for the last command in the string of commands was: https://github.com/KaveIO/AmbariKave/wiki/Detailed-Guides-Troubleshooting

Don't have an account?