aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.17k stars 840 forks source link

EMR Step Builder #947

Open LamaBimal opened 5 years ago

LamaBimal commented 5 years ago

https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/elasticmapreduce/util/StepFactory.html#newEnableDebuggingStep As per AWS sdk java version 1, we have enable Debugging Step, How Could we implement it version 2?

millems commented 5 years ago

Using this as the issue for tracking addition of the V2 equivalent of StepFactory.

aliyevnb commented 4 years ago

I am using following to enable EMR Debugging

HadoopJarStepConfig hadoopJarStepConfig = HadoopJarStepConfig
                .builder()
                .jar("command-runner.jar")
                .args("state-pusher-script")
                .build();

        StepConfig enableDebugging = StepConfig
                .builder()
                .name("Enable Debugging")
                .hadoopJarStep(hadoopJarStepConfig)
                .build();

and later in then in RunJobFlowRequest it looks like this:

RunJobFlowRequest request = RunJobFlowRequest.builder()
                ...
                .steps(enableDebugging)
                .build();