Reputation: 680
I'm new to EC2 and I'm trying to setup an elasticsearch cluster. So far, I've been having trouble with discovery, so I want to get to the root problem by understanding how to telnet between two EC2 instances.
9300 sg-3bc28e0b (elastic) 22 (SSH) 0.0.0.0/0 23 (TELNET) 0.0.0.0/0 9200 0.0.0.0/0
When i try and telnet from one box to the other using the private IP, or public DNS I get "Connection refused"
When I'm on one EC2 instance, I've tried telnetting to the other by:
Nothing works. What am i doing wrong? If I can't telnet from one box to the other, my understanding is that I'm not likely to have success with elasticsearch discover (which I haven't had with two other instances I setup and have since terminated).
Upvotes: 0
Views: 2579
Reputation: 1159
Open 9300 port for the security group where two instances are run (Even if same security group for both !!!)
Use Group ID value. For instance sg-18e1f37a
Upvotes: 1