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

clientPort is deprecated #29

Open
calestyo opened this issue Feb 23, 2022 · 4 comments
Open

clientPort is deprecated #29

calestyo opened this issue Feb 23, 2022 · 4 comments

Comments

@calestyo
Copy link

Hey.

AFAIU, clientPort is deprecated,... but when one removes it, zktop fails:

Traceback (most recent call last):
  File "/usr/bin/zktop", line 11, in <module>
    load_entry_point('zktop==1.0.0', 'console_scripts', 'zktop')()
  File "/usr/lib/python3/dist-packages/zktop.py", line 392, in main_func
    ui = Main(get_zk_servers(options.configfile))
  File "/usr/lib/python3/dist-packages/zktop.py", line 385, in get_zk_servers
    client_port = config['clientPort']
KeyError: 'clientPort'

Cheers,
Chris.

@phunt
Copy link
Owner

phunt commented Feb 28, 2022

Where does it say deprecated? I see it in the docs still here:
https://zookeeper.apache.org/doc/r3.7.0/zookeeperAdmin.html
There is a new secureClientPort - zktop only works with plaintext today afaik.

@calestyo
Copy link
Author

calestyo commented Mar 1, 2022

Hey.

I had read that here:
https://zookeeper.apache.org/doc/r3.5.3-beta/zookeeperReconfig.html

Starting with 3.5.0 the clientPort and clientPortAddress configuration parameters should no longer be used. Instead, this information is now part of the server keyword specification, which becomes as follows:
server.<positive id> = <address1>:<port1>:<port2>[:role];[<client port address>:]<client port>

And interestingly, the software that I use, which makes use of ZK,... that is dCache, gives warnings, when I use clientPort instead of the other way.... it must be able to somehow detect this via ZK itself and not by reading it's config files.

@phunt
Copy link
Owner

phunt commented Mar 1, 2022

Yea, I vaguely remember something about reconfig needing that, in order to support reconfig of those params or something.... tbh it looks like it didn't make it in fully. I didn't find any JIRA when I looked, although it's not easy to search for.

@calestyo
Copy link
Author

calestyo commented Mar 1, 2022

Hmm, yes it feels a bit like that, cause as you've said... it's not really mentioned in the docs anymore.

Still, it would be nice if zktop could support both, cause as I've said, the software which I use that uses ZK, gives strange errors when one still uses clientPort.

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

No branches or pull requests

2 participants