Skip to content

Terminate EMR Cluster

Nate Weisz edited this page Oct 6, 2015 · 3 revisions

Terminates an existing EMR cluster.

Delegate Class

org.finra.dm.service.activiti.task.TerminateEmrCluster

Input Parameters

Name Required Accepted Values Default Value Case Sensitive Description
namespace Y N The name of a valid namespace known by the system.
emrClusterDefinitionName Y N The name of EMR definition. Available definitions are defined EMR Cluster Defintion.
emrClusterName Y N The name of EMR cluster.
overrideTerminationProtection N true, false false N If true, cluster termination protection is overridden.

Output Parameters

Name Description
{taskId}_emrClusterId Id of the EMR cluster that was created, if a cluster with same applicationName, emrClusterDefinitionName and emrClusterName already exists. returns the existing cluster Id.
{taskId}_emrClusterStatus Current status of the EMR cluster.

Sample Usage in Activiti XML

<serviceTask id="terminateClusterServiceTask" name="Terminate Cluster" activiti:class="org.finra.dm.service.activiti.task.TerminateEmrCluster">
   <extensionElements>
      <activiti:field name="namespace" stringValue="testNamespace"/>
      <activiti:field name="emrClusterDefinitionName" expression="${emrClusterDefinitionName}"/>
      <activiti:field name="emrClusterName" expression="${clusterName}"/>
      <activiti:field name="overrideTerminationProtection" stringValue="true"/>
   </extensionElements>
</serviceTask>
Clone this wiki locally