@Service @Transactional(value="herdTransactionManager") public class EmrServiceImpl extends Object implements EmrService
| Constructor and Description |
|---|
EmrServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EmrMasterSecurityGroup |
addSecurityGroupsToClusterMaster(EmrMasterSecurityGroupAddRequest request)
Adds security groups to the master node of an existing EMR Cluster.
|
protected EmrMasterSecurityGroup |
addSecurityGroupsToClusterMasterImpl(EmrMasterSecurityGroupAddRequest request)
Adds security groups to the master node of an existing EMR Cluster.
|
Object |
addStepToCluster(Object request)
Adds step to an existing EMR Cluster.
|
protected Object |
addStepToClusterImpl(Object request)
Adds step to an existing EMR Cluster.
|
EmrCluster |
createCluster(EmrClusterCreateRequest request)
Creates a new EMR Cluster.
|
protected EmrCluster |
createClusterImpl(EmrClusterCreateRequest request)
Creates a new EMR cluster based on the given request if the cluster with the given name does not already exist.
|
EmrCluster |
getCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
String emrClusterId,
String emrStepId,
boolean verbose,
boolean retrieveOozieJobs,
String accountId)
Gets details of an existing EMR Cluster.
|
protected EmrCluster |
getClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
String emrClusterId,
String emrStepId,
boolean verbose,
boolean retrieveOozieJobs,
String accountId)
Gets details of an existing EMR Cluster.
|
OozieWorkflowJob |
getEmrOozieWorkflowJob(String namespace,
String emrClusterDefinitionName,
String emrClusterName,
String oozieWorkflowJobId,
Boolean verbose,
String emrClusterId,
String accountId)
Get the oozie workflow.
|
protected OozieWorkflowJob |
getEmrOozieWorkflowJobImpl(String namespace,
String emrClusterDefinitionName,
String emrClusterName,
String oozieWorkflowJobId,
Boolean verbose,
String emrClusterId,
String accountId)
Get the oozie workflow.
|
OozieWorkflowJob |
runOozieWorkflow(RunOozieWorkflowRequest request)
Runs oozie job on an existing EMR Cluster.
|
protected OozieWorkflowJob |
runOozieWorkflowImpl(RunOozieWorkflowRequest request)
Runs oozie job on an existing EMR Cluster.
|
EmrCluster |
terminateCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
boolean overrideTerminationProtection,
String emrClusterId,
String accountId)
Terminates the EMR Cluster.
|
protected EmrCluster |
terminateClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
boolean overrideTerminationProtection,
String emrClusterId,
String accountId)
Terminates the EMR Cluster.
|
@NamespacePermission(fields="#emrClusterAlternateKeyDto?.namespace", permissions=READ) @Transactional(propagation=REQUIRES_NEW) public EmrCluster getCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, String emrClusterId, String emrStepId, boolean verbose, boolean retrieveOozieJobs, String accountId) throws Exception
getCluster in interface EmrServiceemrClusterId - the cluster id of the cluster to get detailsemrStepId - the step id of the step to get detailsverbose - parameter for whether to return detailed informationretrieveOozieJobs - parameter for whether to retrieve oozie job informationemrClusterAlternateKeyDto - the EMR cluster alternate keyExceptionprotected EmrCluster getClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, String emrClusterId, String emrStepId, boolean verbose, boolean retrieveOozieJobs, String accountId) throws Exception
emrClusterAlternateKeyDto - the EMR cluster alternate keyemrClusterId - the cluster id of the cluster to get detailsemrStepId - the step id of the step to get detailsverbose - parameter for whether to return detailed informationretrieveOozieJobs - parameter for whether to retrieve oozie job informationaccountId - the optional AWS account that EMR cluster is running inException - if an error occurred while getting the cluster.@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public EmrCluster createCluster(EmrClusterCreateRequest request) throws Exception
createCluster in interface EmrServicerequest - the EMR cluster create requestException - if there were any errors while creating the cluster.protected EmrCluster createClusterImpl(EmrClusterCreateRequest request) throws Exception
Creates a new EMR cluster based on the given request if the cluster with the given name does not already exist. If the cluster already exist, returns the information about the existing cluster.
The request must contain:
The request may optionally contain:
true, no calls to AWS will occur, but validations and override will. Defaults to false.A successful response will contain:
null when dry run flag is true.null when dry run flag is truefalse.null if the
cluster was not created.Notes:
request - - EmrClusterCreateRequest The EMR cluster create requestEmrCluster the created EMR cluster objectException - when the original EMR cluster definition XML is malformed@NamespacePermission(fields="#emrClusterAlternateKeyDto?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public EmrCluster terminateCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, boolean overrideTerminationProtection, String emrClusterId, String accountId) throws Exception
terminateCluster in interface EmrServiceemrClusterAlternateKeyDto - the EMR cluster alternate keyoverrideTerminationProtection - parameter for whether to override termination protectionException - if there were any errors while terminating the cluster.protected EmrCluster terminateClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, boolean overrideTerminationProtection, String emrClusterId, String accountId) throws Exception
emrClusterAlternateKeyDto - the EMR cluster alternate keyoverrideTerminationProtection - parameter for whether to override termination protectionemrClusterId - The EMR cluster IDaccountId - The account IdException - if there were any errors while terminating the cluster.@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public Object addStepToCluster(Object request) throws Exception
addStepToCluster in interface EmrServicerequest - the EMR steps add requestException - if there were any errors while adding a step to the cluster.protected Object addStepToClusterImpl(Object request) throws Exception
request - the EMR steps add requestException - if there were any errors while adding a step to the cluster.@NamespacePermission(fields="#request?.namespace", permissions=WRITE) @Transactional(propagation=REQUIRES_NEW) public EmrMasterSecurityGroup addSecurityGroupsToClusterMaster(EmrMasterSecurityGroupAddRequest request) throws Exception
addSecurityGroupsToClusterMaster in interface EmrServicerequest - the EMR master security group add requestException - if there were any errors adding the security groups to the cluster master.protected EmrMasterSecurityGroup addSecurityGroupsToClusterMasterImpl(EmrMasterSecurityGroupAddRequest request) throws Exception
request - the EMR master security group add requestException - if there were any errors adding the security groups to the cluster master.@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public OozieWorkflowJob runOozieWorkflow(RunOozieWorkflowRequest request) throws Exception
runOozieWorkflow in interface EmrServicerequest - the Run oozie workflow requestException - if there were any errors while submitting the job.protected OozieWorkflowJob runOozieWorkflowImpl(RunOozieWorkflowRequest request) throws Exception
request - the Run oozie workflow requestException - if there were any errors while submitting the job.@NamespacePermission(fields="#namespace", permissions=READ) @Transactional(propagation=REQUIRES_NEW) public OozieWorkflowJob getEmrOozieWorkflowJob(String namespace, String emrClusterDefinitionName, String emrClusterName, String oozieWorkflowJobId, Boolean verbose, String emrClusterId, String accountId) throws Exception
getEmrOozieWorkflowJob in interface EmrServicenamespace - the namespaceemrClusterDefinitionName - the EMR cluster definition nameemrClusterName - the EMR cluster nameoozieWorkflowJobId - the ooxie workflow Id.verbose - the flag to indicate whether to return verbose informationemrClusterId - The EMR cluster IDaccountId - account IdException - Exceptionprotected OozieWorkflowJob getEmrOozieWorkflowJobImpl(String namespace, String emrClusterDefinitionName, String emrClusterName, String oozieWorkflowJobId, Boolean verbose, String emrClusterId, String accountId) throws Exception
namespace - the namespaceemrClusterDefinitionName - the EMR cluster definition nameemrClusterName - the EMR cluster nameoozieWorkflowJobId - the ooxie workflow Id.verbose - the flag to indicate whether to return verbose informationemrClusterId - The EMR cluster IDaccountId - The account IdException - ExceptionCopyright © 2017. All rights reserved.