Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EMR: Error parsing parameter: Expected: '=', received: 'EOF' for input:

I'm trying to create a cluster from inside one of my EC2 instances. Typing the following command to start my cluster-

aws emr create-cluster --release-label emr-5.20.0 --instance-groups instance-groups.json --auto-terminate and so on...

I receive the following error-

Error parsing parameter '--instance-groups': Expected: '=', received: 'EOF' for input:
instance-groups.json
                    ^

I already tried --instance-groups=instance-groups.json, but I get the same error message.

What's wrong here?

like image 866
kev Avatar asked Mar 15 '19 20:03

kev


2 Answers

The reason this was failing was because AWS has strict rules when it comes to providing the path for reading files within your EC2 instance.

So, if you want to read the file instance-groups.json (assuming it is in the same directory from where you're running the aws emr CLI command), you must provide file://instance-groups.json as the filename, instead of the straightforward instance-groups.json.

like image 110
kev Avatar answered Sep 21 '22 04:09

kev


Got this same error message for importing a JSON file in AWS DynamoDB, I was trying to import it from an S3 bucket.

Error parsing parameter '--instance-groups': Expected: '=', received: 'EOF' for input: instance-groups.json

The issues got fixed when I moved file locally and executed the command with file://

So thanks

like image 28
Anshumaan Bakshi Avatar answered Sep 20 '22 04:09

Anshumaan Bakshi