I have about 55 EMR clusters (all of them were completed) and tried to retrieve all 55 EMR clusters using the list_clusters method in boto . I searched for examples on pagination of the number of results from boto, but did not find any examples. Given this statement:
emr_object.list_clusters(cluster_states=["TERMINATED"], marker="what_should_i_use_here").clusters
I kept getting an InvalidRequestException error:
boto.exception.EmrResponseError: EmrResponseError: 400 Bad Request <ErrorResponse xmlns="http://elasticmapreduce.amazonaws.com/doc/2009-03-31"> <Error> <Type>Sender</Type> <Code>InvalidRequestException</Code> <Message>Marker 'what_should_i_use_here' is not valid.</Message> </Error> <RequestId>555b91bd-c122-11e3-8e31-abc75abdb39d</RequestId> </ErrorResponse>
What should I provide in the parameter marker , so that I can correctly split the request?
Thanks!
source share