Unfortunately, what seems to be occurring is that the nodes at EC2 are
sending their internal EC2 ip addresses in ping responses to my local
node and my local node can't respond affirmatively to those ips since
they're EC2 internal. I've tried experimenting with the
transport.publish_host setting on the EC2 servers, but so far no
luck. Any ideas on how this can work? The EC2 discovery module is
not an option for me since my IT department does not want the EC2
account information out in code.
If you want to connect from your machine to the cluster on ec2, then the network.host should be the public ip. But, its better to use the TransportClient in this case.
On Wednesday, June 15, 2011 at 10:03 PM, Drew H wrote:
Hi Folks,
I have a two node ES cluster at EC2 set up, and I want to connect to
the cluster from my local machine using this code:
Unfortunately, what seems to be occurring is that the nodes at EC2 are
sending their internal EC2 ip addresses in ping responses to my local
node and my local node can't respond affirmatively to those ips since
they're EC2 internal. I've tried experimenting with the
transport.publish_host setting on the EC2 servers, but so far no
luck. Any ideas on how this can work? The EC2 discovery module is
not an option for me since my IT department does not want the EC2
account information out in code.
We use Maven to build our projects and our EC2 credentials are part of each
users /.m2/settings.xml file. (At least those users who can deploy to EC2.)
This keeps the credentials out of the codebase and version control.
Unfortunately, what seems to be occurring is that the nodes at EC2 are
sending their internal EC2 ip addresses in ping responses to my local
node and my local node can't respond affirmatively to those ips since
they're EC2 internal. I've tried experimenting with the
transport.publish_host setting on the EC2 servers, but so far no
luck. Any ideas on how this can work? The EC2 discovery module is
not an option for me since my IT department does not want the EC2
account information out in code.
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.