Example usage for com.amazonaws.services.elasticmapreduce.model DescribeStepRequest setClusterId

List of usage examples for com.amazonaws.services.elasticmapreduce.model DescribeStepRequest setClusterId

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticmapreduce.model DescribeStepRequest setClusterId.

Prototype


public void setClusterId(String clusterId) 

Source Link

Document

The identifier of the cluster with steps to describe.

Usage

From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java

License:Apache License

private String getActualStepState() {
    String stepState = null;//from   w  w  w . j  a  v a  2s.  c om
    DescribeStepRequest describeStepRequest = new DescribeStepRequest();
    describeStepRequest.setClusterId(hadoopJobFlowId);
    describeStepRequest.setStepId(stepId);
    DescribeStepResult describeStepResult = emrClient.describeStep(describeStepRequest);

    if (describeStepResult != null) {
        stepState = describeStepResult.getStep().getStatus().getState();
    }
    return stepState;
}