Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default to using the ZK server’s cfg #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

calestyo
Copy link

If a ZooKeeper server is installed on the system, zktop is likely expected to
connected to the ZK enseble of that and not only to the local ZK server.

• Set a default path for a ZooKeeper server configuration file to
"/etc/zookeeper/conf/zoo.cfg".
This value should be adapted by distributions to their respective ZooKeeper
server package’s default path.
• Unless “--server” is explicitly given and if the ZooKeeper server
configuration file exists (is a regular file or a symlink to it) at the
default path, use the later for determining to which ZooKeeper servers to
connect.
• Updated the documentation for these changes.
• Added a note that with Python2, zktop now requires pathlib to be installed.

Signed-off-by: Christoph Anton Mitterer mail@christoph.anton.mitterer.name

If a ZooKeeper server is installed on the system, zktop is likely expected to
connected to the ZK enseble of that and not only to the local ZK server.

• Set a default path for a ZooKeeper server configuration file to
  "/etc/zookeeper/conf/zoo.cfg".
  This value should be adapted by distributions to their respective ZooKeeper
  server package’s default path.
• Unless “--server” is explicitly given and if the ZooKeeper server
  configuration file exists (is a regular file or a symlink to it) at the
  default path, use the later for determining to which ZooKeeper servers to
  connect.
• Updated the documentation for these changes.
• Added a note that with Python2, zktop now requires pathlib to be installed.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
@calestyo
Copy link
Author

@phunt Hey... anything new on this?

@phunt
Copy link
Owner

phunt commented Dec 21, 2021

Thanks @calestyo - tbh though I think when I looked at it originally (granted it's been a while...) I thought that I wanted to optimize for local usage as the default. I also didn't think that /etc/... was universal. Python2 should be removed entirely at this point given it's EOL for a while now.

@calestyo
Copy link
Author

Not sure what you mean... doesn't it make just sense to use the config if it's there and if not fall back to the current localhost usage?

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

Successfully merging this pull request may close these issues.

2 participants