Skip to content

EMR Add Hive Step

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

Adds a Hive step to an EMR cluster.

Delegate Class

org.finra.dm.service.activiti.task.AddEmrHiveStep

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.
stepName Y The name os Step.
scriptLocation Y The location of hive script.
scriptArguments N The arguments delimited by the pipe character ( | ). Delimiter can be escaped by a backslash ( \ ).
continueOnError N true, false false N Action on step failure, "true": continue, "false": cancel.

Output Parameters

Name Description
{taskId}_emrStepId The step ID.

Sample Usage in Activiti XML

<serviceTask id="addHiveStepServiceTask" name="Add Hive Step" activiti:class="org.finra.dm.service.activiti.task.AddEmrHiveStep">
   <extensionElements>
      <activiti:field name="namespace" stringValue="testNamespace"/>
      <activiti:field name="emrClusterDefinitionName" expression="${emrClusterDefinitionName}"/>
      <activiti:field name="emrClusterName" expression="${clusterName}"/>
      <activiti:field name="stepName" expression="${stepName}"/>
      <activiti:field name="scriptLocation" expression="${scriptLocation}"/>
      <activiti:field name="scriptArguments" expression="${scriptArguments}"/>
      <activiti:field name="continueOnError" expression="${continueOnError}"/>
   </extensionElements>
</serviceTask>
Clone this wiki locally