Question

I have one job flow, and it's "KeepAlive" value is set to true. When I run it, it naturally starts an EMR cluster.

My goal is to terminate this cluster entirely. I assume this is done using a TerminateJobFlowRequest, which requires some JobFlowIDs to work.

This is problematic for two reasons:

1) These docs say the "describeJobFlows" method is deprecated and suggests no alternative.

2) Describing all job flows gives me all the recent job flows on my account. I'd prefer to receive only the info for the job flows attached to the current AmazonEMRClient.

Does anyone have any ideas on how to find my specific JobFlow and terminate it? Please and thank you.

Was it helpful?

Solution

emrClient.terminateJobFlows(
    new TerminateJobFlowsRequest().withJobFlowIds( strId )
);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top