tPigCode Standard properties
These properties are used to configure tPigCode running in the Standard Job framework.
The Standard tPigCode component belongs to the Big Data and the Processing families.
The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.
Basic settings
|
Schema and Edit Schema |
A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. When you create a Spark Job, avoid the reserved word line when naming the fields. Click Edit schema to make changes to the schema. If the current schema is of the Repository type, three options are available:
|
|
|
Built-In: You create and store the schema locally for this component only. |
|
Repository: You have already created the schema and stored it in the Repository. You can reuse it in various projects and Job designs. |
|
|
Scripts |
Type in Pig scripts you want to execute depending on the task you need to perform. For further information about Pig functions syntax, see Apache's documentation about Pig UDF: Pig components output tuples and automatically set up an alias for each tuple. When you use a tuple in your Pig script, you have to enter the right alias. The alias syntax is Component_ID_rowID_Result, for example, tPigCode_1_row2_Result. |
Advanced settings
|
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the Job level as well as at each component level. |
|
Enable escape |
Select this check box so that you can simply write plain Pig code in the Scripts field without need to bear in mind the escape characters, otherwise required for proper Java code generation. |
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. 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 further information about variables, see Talend Studio User Guide. |
Usage
|
Usage rule |
This component is commonly used as intermediate step together with input component and output component. A tPigCode component can execute only one Pig Latin statement, therefore, if you need to execute multiple statements, you have to use a corresponding number of tPigCode components to run them, one after another. If a particular .jar file is required to execute a statement, you need to register that library file via the tPigLoad component that starts the Pig process in question. |
|
Prerequisites |
The Hadoop distribution must be properly installed, so as to guarantee the interaction with Talend Studio . The following list presents MapR related information for example.
For further information about how to install a Hadoop distribution, see the manuals corresponding to the Hadoop distribution you are using. |
|
Limitation |
Knowledge of Pig scripts is required. |