Support Questions

Find answers, ask questions, and share your expertise

Bad : Canary test failed to create an ephemeral znode

avatar

I had to create the myid file and data directory manually. Finally the service started on my host machines, however I am still getting:

Bad :Canary test failed to create an ephemeral znode. I also had to change permissions of var/lib/zookeeper folder to zookeeper-user which was earlier set to root. I have a feeling this error as well is because of some permission issue. How do I fix this?
1 REPLY 1

avatar

Hey @Simran kaur!
Could you check if you're able to connect to all zk ports?
And what about your datadir property (inside /etc/zookeeper/conf/zoo.cfg), could you check your permissions there?

clientPort=2181
initLimit=10
autopurge.purgeInterval=24
syncLimit=5
tickTime=3000
dataDir=/hadoop/zookeeper
autopurge.snapRetainCount=30
server.1=mynode1:2888:3888
server.2=mynode2:2888:3888
server.3=mynode3:2888:3888

Hope this helps!