I'm trying to ssh into Amazon EMR Spark Cluster. Here's what I did:
Get the cluster master's IP:
aws emr describe-cluster --cluster-id <cluster_id> | grep MasterPublicDnsName
Use the IP to ssh into the box:
ssh -i CSxxx.pem hadoop@ec2-xx-xxx-xxx-xxx.ap-southeast-1.compute.amazonaws.com
I'm getting stuck here, as running (2) gives me the below error:
ssh: connect to host ec2-xx-xxx-xxx-xxx.ap-southeast-1.compute.amazonaws.com port 22: Operation timed out
Any ideas to fix this issue?