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

Hi,

 

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 environment:user.name=mapr
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
java.io.IOException: Unable to create data directory /opt/mapr/zkdata/version-2
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:85)
        at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:103)
        at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
        at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)

MapR version: 5.2.0.39122.GA  Yarn MapReduce (2.7.0).

Zookeeper version: 3.4.5

MapR comes with a Talend sandbox VM.

Outcomes