public interface EmrDao
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addEmrMasterSecurityGroups(String clusterId,
List<String> securityGroups,
AwsParamsDto awsParams)
Add Security groups to the master node of EMR cluster.
|
String |
addEmrStep(String clusterId,
com.amazonaws.services.elasticmapreduce.model.StepConfig emrStepConfig,
AwsParamsDto awsParamsDto)
Add an EMR Step.
|
String |
createEmrCluster(String clusterName,
EmrClusterDefinition emrClusterDefinition,
AwsParamsDto awsParams)
Create the EMR cluster.
|
com.amazonaws.services.elasticmapreduce.model.ClusterSummary |
getActiveEmrClusterByName(String clusterName,
AwsParamsDto awsParams)
Get an Active EMR cluster by the cluster name.
|
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.
|
List<String> addEmrMasterSecurityGroups(String clusterId, List<String> securityGroups, AwsParamsDto awsParams) throws Exception
clusterId - EMR cluster Id.securityGroups - the security groups list.awsParams - the proxy details.ExceptionString 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, AwsParamsDto awsParams)
awsParams - AWS related parameters for access/secret keys and proxy details.emrClusterDefinition - the EMR cluster definition that contains all the EMR parameters.clusterName - the cluster name value.com.amazonaws.services.elasticmapreduce.model.ClusterSummary getActiveEmrClusterByName(String clusterName, AwsParamsDto awsParams)
awsParams - AWS related parameters for access/secret keys and proxy details.clusterName - the cluster name value.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 © 2019. All rights reserved.