I am using AWS EC2 linux servers with self-managed Elasticsearch usage.
Now, I have to search data from Elasticsearch Indices which are located in two different regions. For this I came to know we have to use cross-cluster-search functionality.
As these are EC2 servers, i have configured with private IP's of both as below,
I ran the above query in both the clusters.
With the above configuration, when i execute below query,
GET <private_IP of ireland>:9200/ireland_cluster:index,singapore_cluster:index/_search
I am getting below error,
It looks like your network is not correctly configured for these instances to communicate with each other on their private IP addresses. Setting this up correctly is outside the scope of what I can help you with, but perhaps this documentation on VPC peering is what you're looking for?
It still sounds like a basic AWS connectivity issue, and you'll likely get more useful help on a more AWS-focussed forum. For this to work your Windows machine also needs to be on a network on which the private IP addresses of your EC2 instances are reachable (e.g. within one of their VPCs or within another VPC to which they are peered).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.