DB ::异常:默认值:身份验证失败[ClickHouse]
我用 1 个分片创建 CH 并创建一些数据库和表,然后将集群更改为有 2 个分片。分片 2 已启动并拥有所有表,但是当我使用此查询时出现错误:
SELECT hostname() 从tutorial.visits_all
收到来自服务器的异常(版本21.3.20): 代码:516。 DB::Exception:从 localhost:9000 接收。 DB::异常:从 chi-repl-05-replicated-0-0:9000 收到。 DB::Exception: 默认:身份验证失败:密码不正确或不存在具有该名称的用户。
我确信我的密码是正确的,并且我使用此命令 clickhouse-client -h clickhouse-repl-05.rezvani-prom.svc --password qwerty --query "select hostname() fromtutorial.visits_all"
任何人都可以帮助我请
谢谢
I Create CH with 1 shard and create some db and tables then i change my cluster to have 2 shard. shard 2 started and have all of tables but when i use this query i get error:
SELECT hostname()
FROM tutorial.visits_all
Received exception from server (version 21.3.20):
Code: 516. DB::Exception: Received from localhost:9000. DB::Exception: Received from chi-repl-05-replicated-0-0:9000. DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name.
I'm sure my password is correct and i use this command clickhouse-client -h clickhouse-repl-05.rezvani-prom.svc --password qwerty --query "select hostname() from tutorial.visits_all"
Can anyone help me please
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
分布式查询使用默认用户连接到其他分片。
有选项
https://github.com/Altinity/clickhouse-operator/issues?q=is%3Aissue+is%3Aopen+host_regexp
Distributed queries use default user to connect to other shards.
There are options
https://github.com/Altinity/clickhouse-operator/issues?q=is%3Aissue+is%3Aopen+host_regexp