简体   繁体   English

PostgreSQL 9.4和BDR SELECT bdr.bdr_group_join错误

[英]Postgresql 9.4 and BDR SELECT bdr.bdr_group_join ERROR

I'm trying to configurate Postgresql 9.4 with BDR, I have two servers where the master has the address 169.254.9.90 and the slave has the address 169.254.12.48. 我正在尝试使用BDR配置Postgresql 9.4,我有两台服务器,其中主服务器的地址为169.254.9.90,从服务器的地址为169.254.12.48。 I have already configurated the master but when I try to join the slave to the replication I'm getting an error: 我已经配置了主服务器,但是当我尝试将从服务器加入复制时,我得到了一个错误:

Command to join: 加入命令:

SELECT bdr.bdr_group_join(
    local_node_name := 'node2',
    node_external_dsn := 'host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres',
    join_using_dsn := 'host=169.254.9.90 port=5432 user=postgres dbname=amstest password=postgres'
);

The error Im getting is: 我得到的错误是:

ERROR: connection from remote back to local in replication mode failed DETAIL: remote reported: ERROR: establish BDR: FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL on FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL off 错误:在复制模式下从远程连接到本地的连接失败详细信息:远程报告:错误:建立BDR:致命:否pg_hba.conf条目用于主机“ 169.254.9.90”,用户“ postgres”,致命的SSL上的复制连接:否pg_hba.conf条目,用于从主机“ 169.254.9.90”复制复制连接,用户“ postgres”,关闭SSL

DETAIL: Connection string is 'replication=database fallback_application_name='BDR test connection' connect_timeout=30 keepalives=1 keepalives_idle=20 keepalives_interval=20 keepalives_count=5 host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres' 详细信息:连接字符串为'replication = database fallback_application_name ='BDR test connection'connect_timeout = 30 keepalives = 1 keepalives_idle = 20 keepalives_interval = 20 keepalives_count = 5 host = 169.254.12.48 port = 5432 user = postgres dbname = amstest password = postgres'

CONTEXT: SQL statement "SELECT * 上下文:SQL语句“ SELECT *
FROM bdr.bdr_test_remote_connectback(join_using_dsn, node_external_dsn)" PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 39 at SQL statement FROM bdr.bdr_test_remote_connectback(join_using_dsn,node_external_dsn)“ PL / pgSQL函数bdr_group_join(text,text,text,text,integer,text [])SQL语句的第39行

Could anyone help me please? 有人可以帮我吗?

FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres" 严重:主机“ 169.254.9.90”和用户“ postgres”之间没有用于复制连接的pg_hba.conf条目

Each node must be able to connect to each other node, both for replication and non-replication connections. 每个节点都必须能够连接到其他节点,以进行复制和非复制连接。

The newly joining node does not have a pg_hba.conf that permits the existing node you are specifying as a join target to connect to it. 新加入的节点没有pg_hba.conf ,它允许您指定为加入目标的现有节点连接到该节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM