| Constructor and Description |
|---|
EmrDaoImpl() |
| 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.
|
List<com.amazonaws.services.elasticmapreduce.model.Application> |
getApplications(List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications)
Converts the given list of
EmrClusterDefinitionApplication into a list of Application |
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.
|
List<com.amazonaws.services.elasticmapreduce.model.Configuration> |
getConfigurations(List<EmrClusterDefinitionConfiguration> emrClusterDefinitionConfigurations)
Converts the given list of
EmrClusterDefinitionConfiguration into a list of Configuration. |
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.
|
Map<String,String> |
getMap(List<Parameter> parameters)
|
void |
terminateEmrCluster(String clusterId,
boolean overrideTerminationProtection,
AwsParamsDto awsParams)
Terminates the EMR cluster.
|
public String addEmrStep(String clusterId, com.amazonaws.services.elasticmapreduce.model.StepConfig emrStepConfig, AwsParamsDto awsParamsDto) throws Exception
addEmrStep in interface EmrDaoclusterId - EMR cluster ID.emrStepConfig - the EMR step config to be added.awsParamsDto - the proxy details.
There are five serializable objects supported currently. They are 1: ShellStep - For shell scripts 2: OozieStep - For Oozie workflow xml files 3:
HiveStep - For hive scripts 4: HadoopJarStep - For Custom Map Reduce Jar files and 5: PigStep - For Pig scripts.Exceptionpublic List<String> addEmrMasterSecurityGroups(String clusterId, List<String> securityGroups, AwsParamsDto awsParams) throws Exception
addEmrMasterSecurityGroups in interface EmrDaoclusterId - EMR cluster Id.securityGroups - the security groups list.awsParams - the proxy details.Exceptionpublic com.amazonaws.services.elasticmapreduce.model.Instance getEmrMasterInstance(String clusterId, AwsParamsDto awsParams) throws Exception
getEmrMasterInstance in interface EmrDaoclusterId - EMR cluster id.awsParams - the proxy details.Exceptionpublic String createEmrCluster(String clusterName, EmrClusterDefinition emrClusterDefinition, AwsParamsDto awsParams)
createEmrCluster in interface EmrDaoawsParams - 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.public void terminateEmrCluster(String clusterId, boolean overrideTerminationProtection, AwsParamsDto awsParams)
terminateEmrCluster in interface EmrDaoclusterId - the cluster Id.awsParams - AWS related parameters for access/secret keys and proxy details.public com.amazonaws.services.elasticmapreduce.model.Cluster getEmrClusterById(String clusterId, AwsParamsDto awsParams)
getEmrClusterById in interface EmrDaoclusterId - the job Id returned by EMR for the cluster.awsParams - AWS related parameters for access/secret keys and proxy details.public String getEmrClusterStatusById(String clusterId, AwsParamsDto awsParams)
getEmrClusterStatusById in interface EmrDaoclusterId - the job Id returned by EMR for the cluster.awsParams - AWS related parameters for access/secret keys and proxy details.public com.amazonaws.services.elasticmapreduce.model.ClusterSummary getActiveEmrClusterByName(String clusterName, AwsParamsDto awsParams)
getActiveEmrClusterByName in interface EmrDaoawsParams - AWS related parameters for access/secret keys and proxy details.clusterName - the cluster name value.public com.amazonaws.services.elasticmapreduce.model.StepSummary getClusterActiveStep(String clusterId, AwsParamsDto awsParamsDto)
getClusterActiveStep in interface EmrDaoclusterId - the cluster id.awsParamsDto - AWS related parameters for access/secret keys and proxy details.public com.amazonaws.services.elasticmapreduce.model.Step getClusterStep(String clusterId, String stepId, AwsParamsDto awsParamsDto)
getClusterStep in interface EmrDaoclusterId - the cluster id.stepId - the step id to get details of.awsParamsDto - AWS related parameters for access/secret keys and proxy details.public com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient getEmrClient(AwsParamsDto awsParamsDto)
getEmrClient in interface EmrDaoawsParamsDto - AWS related parameters for access/secret keys and proxy details.public List<com.amazonaws.services.elasticmapreduce.model.Application> getApplications(List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications)
EmrClusterDefinitionApplication into a list of ApplicationemrClusterDefinitionApplications - list of EmrClusterDefinitionApplicationApplicationpublic List<com.amazonaws.services.elasticmapreduce.model.Configuration> getConfigurations(List<EmrClusterDefinitionConfiguration> emrClusterDefinitionConfigurations)
EmrClusterDefinitionConfiguration into a list of Configuration.emrClusterDefinitionConfigurations - list of EmrClusterDefinitionConfigurationConfigurationCopyright © 2017. All rights reserved.