Open Kookey opened 4 years ago
需要认证的,可以自己改下源码 com/deem/zkui/utils/ServletUtil.java:100 zk = ZooKeeperUtil.INSTANCE.createZKConnection(zkServer, zkSessionTimeout,globalProps);
com.deem.zkui.utils.ZooKeeperUtil#createZKConnection
String scheme = globalProps.getProperty("authInfo.scheme"); String user = globalProps.getProperty("authInfo.user"); String password = globalProps.getProperty("authInfo.password"); zk.addAuthInfo(scheme, (user + ":" + password).getBytes());
vi config.cfg authInfo.scheme=digest authInfo.user=foo authInfo.password=bar
如果有的节点是digest,登录成功会报错,提示 /node has no auth