tLoop properties for Apache Spark Batch
These properties are used to configure tLoop running in the Spark Batch Job framework.
The Spark Batch tLoop component belongs to the Orchestration family.
The component in this framework is available in all subscription-based Talend products with Big Data and Talend Data Fabric.
Basic settings
Loop Type |
Select a type of loop to be carried out: either For or While. For: The task or Job is carried out for the defined number of iteration While: The task or Job is carried until the condition is met. |
For |
|
While |
|
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. CURRENT_VALUE: the current value. Only available for a For type loop. This is a Flow variable and it returns an integer. CURRENT_ITERATION: the sequence number of the current iteration. This is a Flow variable and it returns an integer. A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from it. For more information about variables, see Using contexts and variables. |
Usage
Usage rule |
tLoop is to be used as a start component and can only be used with an iterate connection to the next component. |
For |
From |
|
To |
|
Step |
Values are increasing |
|
While |
Declaration |
|
Condition |
Iteration |
|
Spark Connection |
In the Spark
Configuration tab in the Run
view, define the connection to a given Spark cluster for the whole Job. In
addition, since the Job expects its dependent jar files for execution, you must
specify the directory in the file system to which these jar files are
transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |