Created 03-06-2017 02:01 PM
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
Created 11-23-2017 11:02 AM
Please how did you solve the permission problems
Created 03-06-2017 02:30 PM
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"
.
Created 11-23-2017 11:05 AM
I get this error while trying to start zookeeper:
/usr/hdfp/2.6.3-235/zookeeper/bin/zkServer.sh start
/zkServer.sh: Permission denied
Created on 03-06-2017 02:58 PM - edited 08-19-2019 02:59 AM
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?
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?
Created 05-09-2017 06:12 PM
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