Class EmrConfig


public class EmrConfig extends AbstractServiceConfig<EmrConfig.Builder>
Configuration for EMR (Elastic MapReduce)-specific container settings.

Instances are created via EmrConfig.Builder:


 EmrConfig config = EmrConfig.builder()
     .enabled(true)
     .defaultReleaseLabel("emr-7.8.0")
     .clusterStartupDelaySeconds(5)
     .build();
 
  • Method Details

    • builder

      public static EmrConfig.Builder builder()
      Returns a new EmrConfig.Builder for this configuration.
      Returns:
      a new builder
    • toBuilder

      public EmrConfig.Builder toBuilder()
      Returns a new EmrConfig.Builder for this configuration, initialized with the current values of this instance.
      Specified by:
      toBuilder in class AbstractServiceConfig<EmrConfig.Builder>
      Returns:
      a new builder pre-populated with this configuration's values
    • getDefaultReleaseLabel

      public String getDefaultReleaseLabel()
      Returns the default EMR release label used when creating clusters.
      Returns:
      the release label
    • getClusterStartupDelaySeconds

      public int getClusterStartupDelaySeconds()
      Returns the delay in seconds before a cluster reaches the WAITING state. A value of 0 means the cluster advances synchronously.
      Returns:
      the cluster startup delay in seconds
    • applyEnvVarsToContainer

      public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container)
      Description copied from class: AbstractServiceConfig
      Applies this service configuration to the given container by setting the appropriate environment variables.
      Overrides:
      applyEnvVarsToContainer in class AbstractServiceConfig<EmrConfig.Builder>
      Parameters:
      container - the container to configure