citus 添加节点 --> “fe_sendauth:未提供密码”错误

问题描述 投票:0回答:1

我正在尝试使用 citus 扩展为 postgresql 数据库设置基于多节点模式的分片。

我有两台蔚蓝虚拟机,一台作为工作节点('20.40.43.246'),另一台作为协调器('20.198.17.232')

我正在关注此文档https://docs.citusdata.com/en/stable/installation/multi_node_debian.html#steps-to-be-execulated-on-all-nodes

在工作节点上数据库已设置并且运行良好。

当我运行时在协调器节点上

sudo -i -u postgres psql -c  "SELECT * from citus_add_node('20.40.43.246', 5432);"
我收到以下错误。

ERROR:  connection to the remote node 20.40.43.246:5432 failed with the following error: fe_sendauth: no password supplied

我需要在工作节点上的 pb_hba.conf 中更改哪些配置?

django postgresql sharding citus
1个回答
0
投票

您需要将 20.40.43.246 添加到 pg_hba,而不是该链接显示的 10.*。但我担心有一天 IP 地址可能会被分配给其他人,然后他们就可以访问您的系统。由于 Citus 现在归 Microsoft 所有,您似乎可以找到一些特定于 Azure 的说明。

此外,除了该链接中显示的行之外,您的 hba 还必须有一些行,否则您将不会收到该错误消息。

© www.soinside.com 2019 - 2024. All rights reserved.