Closed ddsr-ops closed 3 years ago
Please check authority configuration in zookeeper which persisted in /rules
.
Please check authority configuration in zookeeper which persisted in
/rules
.
node /rules is null, details are shown in bellow:
[zk: localhost:2181(CONNECTED) 3] ls /
[lock, metadata, null, props, rules, states, zookeeper]
[zk: localhost:2181(CONNECTED) 4] ls /rules
[]
And, zookeeper is deployed in a docker.
Please check authority configuration in zookeeper which persisted in
/rules
.
I degrade zk from 3.7.0 to 3.6.2, nothing exists in node /rules
Please check authority configuration in zookeeper which persisted in
/rules
.
I migrate zk from docker to centos host, it works, then nothing also exists in node /rules.
[zk: localhost:2181(CONNECTED) 0] ls /rules
[]
[zk: localhost:2181(CONNECTED) 1] ls /
[lock, metadata, null, props, rules, states, zookeeper]
[root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -plove8013
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.35-log-ShardingSphere-Proxy 5.0.0-beta
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit;
Bye
[root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'192.168.15.130' (using password: YES)
Please check authority configuration in zookeeper which persisted in
/rules
.I migrate zk from docker to centos host, it works, then nothing also exists in node /rules.
[zk: localhost:2181(CONNECTED) 0] ls /rules [] [zk: localhost:2181(CONNECTED) 1] ls / [lock, metadata, null, props, rules, states, zookeeper] [root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -plove8013 mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.7.35-log-ShardingSphere-Proxy 5.0.0-beta Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit; Bye [root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -proot mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'root'@'192.168.15.130' (using password: YES)
Any content in other zk nodes?
Please check authority configuration in zookeeper which persisted in
/rules
.I migrate zk from docker to centos host, it works, then nothing also exists in node /rules.
[zk: localhost:2181(CONNECTED) 0] ls /rules [] [zk: localhost:2181(CONNECTED) 1] ls / [lock, metadata, null, props, rules, states, zookeeper] [root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -plove8013 mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.7.35-log-ShardingSphere-Proxy 5.0.0-beta Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit; Bye [root@centos7 bin]# mysql -uroot -h192.168.15.130 -P13308 -proot mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'root'@'192.168.15.130' (using password: YES)
Any content in other zk nodes?
I run ls -R in zk shell:
[zk: localhost:2181(CONNECTED) 4] ls -R /
/
/governance_ds
/lock
/metadata
/null
/props
/rules
/states
/zookeeper
/governance_ds/scaling
/governance_ds/scaling/632626829215137792
/governance_ds/scaling/632632714486349825
/governance_ds/scaling/632634198926032896
/governance_ds/scaling/632640186810892289
/governance_ds/scaling/632645043529711616
/governance_ds/scaling/632626829215137792/config
/governance_ds/scaling/632632714486349825/config
/governance_ds/scaling/632634198926032896/config
/governance_ds/scaling/632640186810892289/config
/governance_ds/scaling/632645043529711616/config
/lock/ack
/lock/locks
/metadata/sharding_db
/metadata/sharding_db/dataSources
/metadata/sharding_db/rules
/metadata/sharding_db/schema
/null/scaling
/null/scaling/_finished_check
/null/scaling/_finished_check/config
/null/scaling/_finished_check/instances
/null/scaling/_finished_check/leader
/null/scaling/_finished_check/servers
/null/scaling/_finished_check/sharding
/null/scaling/_finished_check/leader/sharding
/null/scaling/_finished_check/servers/192.168.15.130
/null/scaling/_finished_check/sharding/0
/null/scaling/_finished_check/sharding/0/instance
/states/datanodes
/states/primarynodes
/states/proxynodes
/zookeeper/config
/zookeeper/quota
@menghaoranss
Please configure overwrite
as true and try again.
Please configure
overwrite
as true and try again. I set overwrite as true, solve it, but /rules in zk has nothing [zk: localhost:2181(CONNECTED) 5] ls /rules []
Please configure
overwrite
as true and try again. I set overwrite as true, solve it, but /rules in zk has nothing [zk: localhost:2181(CONNECTED) 5] ls /rules []
Could it be reproduced without docker?
I plan to use proxy 4.1 instead of 5.x
Question: In general, I config user authority rule in server.yaml when using sharding proxy. But, i can not connect proxy with user authorities has been configured in server.yaml. I hope someone can explain it.
However, I use root user and password 'root', connect proxy successfully. I DO NOT config it!
User sharding, in the same as user root.
ENV:
version info:
config info: server.yaml:
config-sharding.yaml:
log info: