# tExtractPositionalFields MapReduce properties (deprecated)

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

These properties are used to configure tExtractPositionalFields running in the MapReduce Job framework.

The MapReduce tExtractPositionalFields component belongs to the Processing family.

The component in this framework is available in all Talend products with Big Data and Talend Data Fabric.

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

The MapReduce framework is deprecated from Talend 7.3 onwards. Use Talend Jobs for Apache Spark to accomplish your integration tasks.

## Basic settings

| Prev.Comp.Column<br>list | Select an incoming field from the Field list to extract. |
| --- | --- |
| Customize | Select this check box to customize the data format of the<br>positional file and define the table columns:<br><br><br>Column: Select the column you want<br>to customize.<br><br><br>Size: Enter the column size.<br><br><br>Padding char: Type in between<br>inverted commas the padding character used, in order for it to be<br>removed from the field. A space by default.<br><br><br>Alignment: Select the appropriate<br>alignment parameter. |
| Pattern | Enter the pattern to use as basis for the extraction.<br><br>A pattern is length values separated by commas, interpreted as a<br>string between quotes. Make sure the values entered in this fields<br>are consistent with the schema defined. |
| Die on error | Clear the check box to skip any rows on error and complete the process for<br>error-free rows. When errors are skipped, you can collect the rows on error using a Row &gt; Reject link. |
| Schema and Edit<br>Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion. If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>Click Sync<br>columns to retrieve the schema from the previous component connected in the<br>Job. |
|  | Built-In: You create and store the schema locally for this component<br>only. |
|  | Repository: You have already created the schema and stored it in the<br>Repository. You can reuse it in various projects and Job designs. |
| Property type | Either Built-In or Repository. |
|  | Built-In: No property data stored centrally. |
|  | Repository: Select the repository file where the<br>properties are stored.<br><br>The properties are stored centrally under the Hadoop<br>Cluster node of the Repository<br>tree.<br><br>The fields that come after are pre-filled in using the fetched<br>data.<br><br>For further information about the Hadoop<br>Cluster node, see the Getting Started Guide. |

## Advanced settings

| Advanced separator (for number) | Select this check box to change the separator used for numbers. By default, the thousands separator is a comma (*,*) and the decimal separator is a period (*.*). |
| --- | --- |
| Trim Column | Select this check box to remove leading and trailing whitespace<br>from all columns. |
| Check each row structure against<br>schema | Select this check box to check whether the total number of columns<br>in each row is consistent with the schema. If not consistent, an<br>error message will be displayed on the console. |

## Global Variables

| Global Variables | ERROR\_MESSAGE: the error message generated by the component when an<br>error occurs. This is an After variable and it returns a string. This variable functions<br>only if the Die on error check box<br>is cleared, if the component has this check<br>box.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a<br>variable, press Ctrl + Space to<br>access the variable list and choose the variable to use from it.<br><br>For further information about variables, see *Talend Studio*<br>*User Guide*. |
| --- | --- |

## Usage

| **Usage rule** | This component handles flow of data therefore it requires input<br>and output components. It allows you to extract data from a<br>delimited field, using a Row &gt;<br>Main link, and enables you to<br>create a reject flow filtering data which type does not match the<br>defined type.<br><br>In a<br>Talend<br>Map/Reduce Job, this component is used as an intermediate<br>step and other components used along with it must be Map/Reduce components, too. They<br>generate native Map/Reduce code that can be executed directly in Hadoop.<br><br>You need to use the Hadoop Configuration tab in the<br>Run view to define the connection to a given Hadoop<br>distribution for the whole Job.<br><br>This connection is effective on a per-Job basis.<br><br>For further information about a<br>Talend<br>Map/Reduce Job, see the sections<br>describing how to create, convert and configure a<br>Talend<br>Map/Reduce Job of the<br>**Talend Big Data Getting Started Guide**.<br><br>Note that in this documentation, unless otherwise<br>explicitly stated, a scenario presents only Standard Jobs,<br>that is to say traditional<br>Talend<br>data integration Jobs, and non Map/Reduce Jobs. |
| --- | --- |