AnsweredAssumed Answered

Unable to create data directory and start Zookeeper

Question asked by mertez on Apr 6, 2017
Latest reply on Apr 7, 2017 by aalvarez



I am having some issues while trying to start Zookeeper. From the log file it seems that the problem points to a Jira issue. A temporary workaround was to 'chmod 777' zkdata directory. After that Zookeeper can be started successfully.


Here is the snapshot from the log:


2017-04-06 10:18:49,498 [myid:] - INFO  [main:Environment@100] - Server environment:os.version=4.4.0-62-generic
2017-04-06 10:18:49,499 [myid:] - INFO  [main:Environment@100] - Server
2017-04-06 10:18:49,499 [myid:] - INFO  [main:Environment@100] - Server environment:user.home=/home/mapr
2017-04-06 10:18:49,500 [myid:] - INFO  [main:Environment@100] - Server environment:user.dir=/
2017-04-06 10:18:49,502 [myid:] - ERROR [main:ZooKeeperServerMain@63] - Unexpected exception, exiting abnormally Unable to create data directory /opt/mapr/zkdata/version-2
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(
        at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(
        at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(
        at org.apache.zookeeper.server.ZooKeeperServerMain.main(
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(

MapR version:  Yarn MapReduce (2.7.0).

Zookeeper version: 3.4.5

MapR comes with a Talend sandbox VM.