Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set the alc of zookeeper

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to set the alc of zookeeper". In the daily operation, I believe that many people have doubts about how to set up the alc of zookeeper. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to set up alc of zookeeper". Next, please follow the editor to study!

Some kind of authority mechanism adopted by acheme representatives

Id: users allowed to access

Permissions permission combination string

# acheme

There is only one id under world:world, that is, there is only one anyone user, so the combination is written as world:anyone: [permissions]

GetAcl: get the acl permission of a node

Auth stands for authentication and login, which requires the registered user to have permission, in the form of

Auth:user:password: [permissions]

Digest: need to encrypt the password in order to access, combined form

Digest:username:BASE64 (SHA1 (password)): [permissions]

[zk: localhost:2181 (CONNECTED) 1] getAcl / test'world,'anyone: cdrwa

SetAcl: set acl permissions for a node

Addauth: enter authentication and authorization information. Registration is to enter a clear text password to log in, but in zk's system, the password exists in encrypted form.

[zk: localhost:2181 (CONNECTED) 14] addauth digest baxiang:123456 [zk: localhost:2181 (CONNECTED) 15] setAcl / test/baxiang auth:baxiang:123456:cdrwacZxid = 0x1d8actime = Wed May 08 22:23:36 CST 2019mZxid = 0x1d8cmtime = Wed May 08 22:25:53 CST 2019pZxid = 0x1d8acversion = 2aclVersion = 1ephemeralOwner = 0x0dataLength = 6numChildren = 0

# digest

[zk: localhost:2181 (CONNECTED) 6] setAcl / test/acl digest:baxiang:/L9NGxtJUN3jM1TDU0z3ZGpJA0o=:cdracZxid = 0x1d91ctime = Wed May 08 23:02:42 CST 2019mZxid = 0x1d91mtime = Wed May 08 23:02:42 CST 2019pZxid = 0x1d91cversion = 0dataVersion = 0aclVersion = 1ephemeralOwner = 0x0dataLength = 3numChildren = 0, the study on "how to set alc for zookeeper" is over. I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report