"Operation timed out" error while trying to ssh in Amazon EMR Spark Cluster

I am trying ssh in Amazon EMR Spark Cluster. Here is what I did:

  • Get cluster IP address:

    aws emr describe-cluster --cluster-id <cluster_id> | grep MasterPublicDnsName
    
  • Use the IP address for ssh in the field:

    ssh -i CSxxx.pem hadoop@ec2-xx-xxx-xxx-xxx.ap-southeast-1.compute.amazonaws.com
    

I am stuck here since running (2) gives me the error below:

ssh: connect to host ec2-xx-xxx-xxx-xxx.ap-southeast-1.compute.amazonaws.com port 22: Operation timed out

Any ideas on how to fix this?

+10
source share
2 answers

"Operation timeout" It usually happens for one of two reasons:

  • IP-, , EMR. , / , , " " SSH IP, IP.

  • , EMR VPC, , SSH, SSH'ing VPC, SSH'ing node . , VPC AWS.

+24

ssh. EC2.

1) EC2 โ†’ .

2) ElasticMapReduce-master โ†’ Inbound โ†’ Edit โ†’ Add rule

3) ssh, My IP

.

0

Source: https://habr.com/ru/post/1652153/


All Articles