Reply
New Contributor
Posts: 3
Registered: ‎05-21-2017
Accepted Solution

Error with zookeeper in cloudera 5.11 installation

I am installing the cloudera 5.11 in centos and I had an error with zookeeper. The error is the following:

 

2017-05-21 15:44:59,355 ERROR org.apache.zookeeper.server.ZooKeeperServerMain: Unable to access datadir, exiting abnormally
org.apache.zookeeper.server.persistence.FileTxnSnapLog$DatadirException: Missing data directory /var/lib/zookeeper/version-2, automatic data directory creation is disabled (zookeeper.datadir.autocreate is false). Please create this directory manually.
at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:102)
at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:109)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:91)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:53)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:121)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)

 

The complete log is in the next pastebin link:

 

https://pastebin.com/4JbiGFR2

 

anyone had the same problem?

 

Thanks in advance!

New Contributor
Posts: 5
Registered: ‎01-17-2017

Re: Error with zookeeper in cloudera 5.11 installation

 

Why don't you create /var/lib/zookeeper/version-2 mannualy or zookeeper.datadir.autocreate to true and try.

New Contributor
Posts: 3
Registered: ‎05-21-2017

Re: Error with zookeeper in cloudera 5.11 installation

I create /var/lib/zookeeper/version-2 manually but till I have the same
problem.
New Contributor
Posts: 5
Registered: ‎01-17-2017

Re: Error with zookeeper in cloudera 5.11 installation

What is the permission of the created directory?

Is SELinux disabled in your system?

New Contributor
Posts: 3
Registered: ‎05-21-2017

Re: Error with zookeeper in cloudera 5.11 installation

Thanks, I forgot disable SELinux.

 

Announcements