public interface EmrDao
| Modifier and Type | Method and Description |
|---|---|
String |
addEmrStep(String clusterId,
com.amazonaws.services.elasticmapreduce.model.StepConfig emrStepConfig,
AwsParamsDto awsParamsDto)
Add an EMR Step.
|
String |
createEmrCluster(String clusterName,
EmrClusterDefinition emrClusterDefinition,
EmrParamsDto emrParamsDto)
Create the EMR cluster.
|
com.amazonaws.services.elasticmapreduce.model.ClusterSummary |
getActiveEmrClusterByNameAndAccountId(String clusterName,
String accountId,
AwsParamsDto awsParams)
Get an Active EMR cluster by the cluster name and account id.
|
com.amazonaws.services.elasticmapreduce.model.StepSummary |
getClusterActiveStep(String clusterId,
AwsParamsDto awsParamsDto)
Gets the active step on the cluster if any.
|
com.amazonaws.services.elasticmapreduce.model.Step |
getClusterStep(String clusterId,
String stepId,
AwsParamsDto awsParamsDto)
Gets the step on the cluster.
|
com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient |
getEmrClient(AwsParamsDto awsParamsDto)
Create the EMR client with the given proxy and access key details.
|
com.amazonaws.services.elasticmapreduce.model.Cluster |
getEmrClusterById(String clusterId,
AwsParamsDto awsParams)
Get EMR cluster by cluster Id.
|
String |
getEmrClusterStatusById(String clusterId,
AwsParamsDto awsParams)
Get EMR cluster status by cluster Id.
|
com.amazonaws.services.elasticmapreduce.model.Instance |
getEmrMasterInstance(String clusterId,
AwsParamsDto awsParams)
Gets the master instance of the EMR cluster.
|
com.amazonaws.services.elasticmapreduce.model.ListInstanceFleetsResult |
getListInstanceFleetsResult(String clusterId,
AwsParamsDto awsParams)
Get the instance fleets
|
void |
terminateEmrCluster(String clusterId,
boolean overrideTerminationProtection,
AwsParamsDto awsParams)
Terminates the EMR cluster.
|
String addEmrStep(String clusterId, com.amazonaws.services.elasticmapreduce.model.StepConfig emrStepConfig, AwsParamsDto awsParamsDto) throws Exception
clusterId - EMR cluster ID.emrStepConfig - the EMR step config to be added.awsParamsDto - the proxy details.
There are four serializable objects supported currently. They are 1: ShellStep - For shell scripts 2: HiveStep - For hive scripts 3: HadoopJarStep - For
Custom Map Reduce Jar files and 4: PigStep - For Pig scripts.ExceptionString createEmrCluster(String clusterName, EmrClusterDefinition emrClusterDefinition, EmrParamsDto emrParamsDto)
emrParamsDto - the AWS related parameters required to create and/or access EMR cluster.emrClusterDefinition - the EMR cluster definition that contains all the EMR parameters.clusterName - the cluster name value.com.amazonaws.services.elasticmapreduce.model.ClusterSummary getActiveEmrClusterByNameAndAccountId(String clusterName, String accountId, AwsParamsDto awsParams)
awsParams - AWS related parameters for access/secret keys and proxy details.clusterName - the cluster name value.accountId - the account id in which the cluster resides.com.amazonaws.services.elasticmapreduce.model.StepSummary getClusterActiveStep(String clusterId, AwsParamsDto awsParamsDto)
clusterId - the cluster id.awsParamsDto - AWS related parameters for access/secret keys and proxy details.com.amazonaws.services.elasticmapreduce.model.Step getClusterStep(String clusterId, String stepId, AwsParamsDto awsParamsDto)
clusterId - the cluster id.stepId - the step id to get details of.awsParamsDto - AWS related parameters for access/secret keys and proxy details.com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient getEmrClient(AwsParamsDto awsParamsDto)
awsParamsDto - AWS related parameters for access/secret keys and proxy details.com.amazonaws.services.elasticmapreduce.model.Cluster getEmrClusterById(String clusterId, AwsParamsDto awsParams)
clusterId - the job Id returned by EMR for the cluster.awsParams - AWS related parameters for access/secret keys and proxy details.String getEmrClusterStatusById(String clusterId, AwsParamsDto awsParams)
clusterId - the job Id returned by EMR for the cluster.awsParams - AWS related parameters for access/secret keys and proxy details.com.amazonaws.services.elasticmapreduce.model.Instance getEmrMasterInstance(String clusterId, AwsParamsDto awsParams) throws Exception
clusterId - EMR cluster id.awsParams - the proxy details.Exceptionvoid terminateEmrCluster(String clusterId, boolean overrideTerminationProtection, AwsParamsDto awsParams)
clusterId - the cluster Id.awsParams - AWS related parameters for access/secret keys and proxy details.com.amazonaws.services.elasticmapreduce.model.ListInstanceFleetsResult getListInstanceFleetsResult(String clusterId, AwsParamsDto awsParams)
clusterId - the cluster Id.awsParams - AWS related parameters for access/secret keys and proxy details.Copyright © 2021. All rights reserved.