go-mysql-org / go-mysql-elasticsearch

Sync MySQL data into elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I connect to an ES cluster

dotjin opened this issue · comments

commented

In river.toml file, I set the address to connect to ES like this

es_addr = "192.168.26.101:9200,192.168.26.102:9200,192.168.26.103:9200"

The program reported an error when I started.

image

It would be normal if I changed it to this address.
es_addr = "192.168.26.101:9200"

So, How should I configure the ES cluster connection address?

Did you try creating 3 differents toml files for each address ?