Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Confluent CLI doesn't generate ZooKeeper config having more than 1 instance. #46

Open
SoyeeDst opened this issue Sep 25, 2017 · 8 comments
Assignees

Comments

@SoyeeDst
Copy link

SoyeeDst commented Sep 25, 2017

If you install CP from DEB/RPM, you have /etc/kafka/zookeeper.properties which says that the serve.x is the server information for each node. So if you do “confluent start” to start zookeeper, you may expect the current node will join the cluster in the section of server.x group. But actually it wasn't.

One magic file /tmp/confluent.zJ3sbPTi/zookeeper/zookeeper.properties was generated in my AWS run, however that makes sense with the explanation of Confluent CLI doesn't use the standard Confluent Config with no warning!. My running log still shows that the file to specify Zookeeper myid must be required as well though, here comes the complete stack trace.

[2017-09-25 20:45:54,120] INFO Defaulting to majority quorums (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2017-09-25 20:45:54,121] ERROR Invalid config, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /tmp/confluent.zJ3sbPTi/zookeeper/zookeeper.properties
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.IllegalArgumentException: /tmp/confluent.zJ3sbPTi/zookeeper/data/myid file is missing
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:406)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:150)

@mmuehlbeyer
Copy link

same issue here
starting with zookeeper-server-start works as expected

@OSEDELTA
Copy link

OSEDELTA commented Nov 6, 2017

The same for me.

So I would like to know how should we start/configure confluent CLI to use the configuration that is written under /etc/kafka and /etc/schema-registry (which are the standard places created when you install confluent via apt-get/deb)

@jarnix
Copy link

jarnix commented Nov 13, 2017

It looks like that it's the same issue with the tarball, the tmp directory does not contain the myid and zookeeper doesn't start. In my test server the myid file is located in the right folder (starting with zookeeper-server-start is fine)

@SoyeeDst
Copy link
Author

@jarnix yes, zookeeper-server-start works fine in my environment as well

@danielec7
Copy link

I have the same issue.

@dimon222
Copy link

dimon222 commented Dec 4, 2017

Pretty much same issue here. I'm currently rewriting myid file manually after folder structure in /tmp is created (after failed launch) to workaround this problem.

@windman83
Copy link

same issue!!

@windman83
Copy link

windman83 commented Jan 9, 2018

workaround for me was adding
cp /var/lib/zookeeper/myid $confluent_current/zookeeper/data/
after
config_service "zookeeper" "kafka" "zookeeper" "dataDir"
in /bin/confluent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants