jeudi 4 juin 2015

InstanceProfile is required for creating cluster - create python function to install module

Im using elastic mapreduce with boto.

Everything was working fine, but since this week Im getting this error:

InstanceProfile is required for creating cluster

Im trying to fix this issue, and it seems that now we need to create a default role for elastic map reduce.

And I did this using awscli, with this commands below, but there isnt other way to do this (for example with boto)?

If there isnt other way it is possible to create for example a python function, that execute this 3 commands below?

1 - pip install awscli

2 - aws configure

3 - aws emr create-default-roles

Ater use this commands above I also needed to add in mapreduce job function this:

ami_version="2.4.9",
job_flow_role="EMR_EC2_DefaultRole",
service_role="EMR_DefaultRole"




Aucun commentaire:

Enregistrer un commentaire