I'm trying to get a simple proof of concept off the ground with Citus,
but am running into another blocker issue. This time the issue seems to
be with security and/or connectivity.
I have a small cluster set up with 2 workers:
darose=# SELECT * from master_get_active_worker_nodes();
node_name | node_port
----------------+-----------
192.168.70.210 | 5432
192.168.70.144 | 5432
(2 rows)
And I've set up a few simple tables on it:
darose=# \d
List of relations
Schema | Name | Type | Owner
--------+------------------+-------+--------
darose | profile_segments | table | darose
darose | profiles | table | darose
darose | segments | table | darose
And I believe that I have security set up correctly in pg_hba.conf:
On the workers:
host all all
192.168.70.153/32 trust
On the master:
host all all
192.168.70.210/32 trust
host all all
192.168.70.144/32 trust
However, when I try to shard one of my tables, it's an epic fail:
darose=# SELECT create_distributed_table('profiles', 'user_id');
WARNING: connection failed to
192.168.70.144:5432
DETAIL: fe_sendauth: no password supplied
WARNING: could not create shard on "
192.168.70.144:5432"
WARNING: connection failed to
192.168.70.210:5432
DETAIL: fe_sendauth: no password supplied
WARNING: could not create shard on "
192.168.70.210:5432"
ERROR: could only create 0 of 2 of required shard replicas
Any idea what I might be doing wrong?
Note that I'm logged into pg/citus as user "darose", and that user has a
password assigned. But I would think that shouldn't matter given the
"trust" lines I provided in pg_hba.conf.
Any suggestions on how to fix?
Thanks,
DR