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

Unable to start the zookeper server in HDP 2.6

Super Collaborator

Hello Experts,

I am Facing the issue with zookeeper. while starting the service from ambari console log files are not updating. in .out log file

we have found the below exception.

2018-08-28 07:34:31,555 - ERROR [LearnerHandler-/10.74.217.44:39280:LearnerHandler@633] - Unexpected exception causing shutdown while sock still open java.io.FileNotFoundException: /data/hadoop/zookeeper/data/version-2/acceptedEpoch.tmp (Permission denied) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at org.apache.zookeeper.common.AtomicFileOutputStream.<init>(AtomicFileOutputStream.java:59) at org.apache.zookeeper.server.quorum.QuorumPeer.writeLongToFile(QuorumPeer.java:1216) at org.apache.zookeeper.server.quorum.QuorumPeer.setAcceptedEpoch(QuorumPeer.java:1262) at org.apache.zookeeper.server.quorum.Leader.getEpochToPropose(Leader.java:867) at org.apache.zookeeper.server.quorum.LearnerHandler.run(LearnerHandler.java:342) 2018-08-28 07:34:31,555 - WARN [LearnerHandler-/10.74.217.44:39280:LearnerHandler@646] - ******* GOODBYE /10.74.217.44:39280 ********

After that we have changed ownership and permissions for /data/hadoop/zookeeper/data/version-2/ folder but still facing the same issue, Log files are not updating and i am unable to figure it out the issue?

1 ACCEPTED SOLUTION

Hi @subhash parise
What did you set the ownership to for the version-2 folder and contents? It should be zookeeper:hadoop and zookeeper (owner) should have write permissions. Did you also check that you can traverse the folder structure, as the zookeeper user?

Ex does this work;

[root@host]# su - zookeeper
[zookeeper@host ~]$ cd /data/hadoop/zookeeper/version-2/
[zookeeper@host version-2]$ ls -al drwxr-xr-x. 2 zookeeper hadoop 4096 Aug 27 08:03 . drwxr-xr-x. 3 zookeeper hadoop 4096 Aug 27 08:03 .. -rw-r--r--. 1 zookeeper hadoop 1 Aug 27 08:03 acceptedEpoch -rw-r--r--. 1 zookeeper hadoop 1 Aug 27 08:03 currentEpoch -rw-r--r--. 1 zookeeper hadoop 67108880 Aug 28 10:52 log.100000001 -rw-r--r--. 1 zookeeper hadoop 296 Aug 27 08:03 snapshot.0

View solution in original post

1 REPLY 1

Hi @subhash parise
What did you set the ownership to for the version-2 folder and contents? It should be zookeeper:hadoop and zookeeper (owner) should have write permissions. Did you also check that you can traverse the folder structure, as the zookeeper user?

Ex does this work;

[root@host]# su - zookeeper
[zookeeper@host ~]$ cd /data/hadoop/zookeeper/version-2/
[zookeeper@host version-2]$ ls -al drwxr-xr-x. 2 zookeeper hadoop 4096 Aug 27 08:03 . drwxr-xr-x. 3 zookeeper hadoop 4096 Aug 27 08:03 .. -rw-r--r--. 1 zookeeper hadoop 1 Aug 27 08:03 acceptedEpoch -rw-r--r--. 1 zookeeper hadoop 1 Aug 27 08:03 currentEpoch -rw-r--r--. 1 zookeeper hadoop 67108880 Aug 28 10:52 log.100000001 -rw-r--r--. 1 zookeeper hadoop 296 Aug 27 08:03 snapshot.0
; ;