Filipe Ferminiano
Filipe Ferminiano

Reputation: 8801

Error when creating spark cluster in Amazon EMR

I'm trying to create a Spark cluster with Amazon EMR

aws emr create-cluster --name SparkCluster --ami-version 3.2 --instance-type m3.xlarge --instance-count 3 --ec2-attributes KeyName=[[MYKEY_VALUE]] --applications Name=Hive --bootstrap-actions Path=s3://support.elasticmapreduce/spark/install-spark

Substituting [[MYKEY_VALUE]] with my access key id from amazon.

When I run

aws emr describe-cluster --cluster-id CLUSTER-ID-HERE

I get this

"Cluster": {
        "Status": {
            "Timeline": {
                "EndDateTime": 1431824191.597, 
                "CreationDateTime": 1431824149.281
            }, 
            "State": "TERMINATED_WITH_ERRORS", 
            "StateChangeReason": {
                "Message": "The given SSH key name was invalid", 
                "Code": "VALIDATION_ERROR"
            }

What should I do to turn the status into WAITING?

Upvotes: 1

Views: 1435

Answers (1)

Sandesh Deshmane
Sandesh Deshmane

Reputation: 2305

Can you check the key that you have provided while creating the cluster ?

it his key pair exists ? . You can check the key pair in AWS console.

KeyName=[[MYKEY_VALUE]]

Upvotes: 3

Related Questions