# tApacheKuduOutput

Writes data to an Apache Kudu table.

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tApacheKuduOutput Standard properties

These properties are used to configure tApacheKuduOutput running in the Standard Job framework.

The Standard tApacheKuduOutput component belongs to the Big Data family.

The component in this framework is available in all subscription-based Talend products.

Information noteNote: This component is available only when you have installed the R2022-01 Talend Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.

## Basic settings

| Properties | Description |
| --- | --- |
| Property type | Either Built-In or Repository.<br><br><br>Built-In: No property data stored centrally.<br><br><br>Repository: Select the repository file where the<br>properties are stored. |
| Master addresses | Click the plus button on the bottom of this field to add and configure master addresses.<br><br><ul> <li> <span>Master node host name</span>: Enter the IP address or hostname that identifies the Apache Kudu cluster master node.</li> <li> <span>Master node port</span>: Enter the port associated with the Apache Kudu cluster master node.</li> </ul><br><br>To add multiple master nodes that are of the same Apache Kudu cluster, add them in separate rows. |
| Table name | Enter the name of the Apache Kudu table to write data to. You can also select the name of the<br>Apache Kudu table by clicking the [...] button next to this field. |
| 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><ul> <li> <p> <span>Built-In</span>: You create and store the schema locally for this component                only.</p> </li> <li> <p> <span>Repository</span>: You have already created the schema and stored it in the                Repository. You can reuse it in various projects and Job designs.</p> </li> </ul><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.</p> <p>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> |
| Write operation | Specify the write operation to perform. Currently, this component only<br>inserts data to Apache Kudu tables. |
| Create if not exist | Select this option to create the table if the table specified in the Table name field does not exist. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at the Job<br>level as well as at each component level. |
| Max batch size | Specify the maximum number of lines that can be processed in a<br>batch. |
| Set primary key(s) | Select this option to add primary keys manually. If this option is not selected, the first field is used as the primary key.<br><br>If you are creating a new table, the primary key you define cannot be changed once the table is created. |
| Generate default partitioning | Select this option to generate the default partitions when inserting data.<br><br>This option is available when Create if not exist is selected in the Basic settings view. |
| Hash partitioning columns | Click the plus button on the bottom of this field to add columns based on which rows are<br>hash-partitioned. The columns specified need to exist in the data and to be<br>defined in the schema.<br><br>By default, a newly created table is<br>partitioned. It is recommended to define how a newly created table is partitioned.<br>See [Hash partitioning](https://kudu.apache.org/docs/schema_design.html#hash-partitioning) for related information.<br><br>This field is available when Create if not exist is<br>selected in the Basic settings view and<br>Generate default partitioning is not selected. |
| Bucket number | Enter the number of the buckets to be used to store the partitions. Buckets are created on the<br>fly.<br><br>At runtime, rows are distributed by hash values as specified in the Hash partitioning<br>columns field in one of these buckets. If you leave the<br>Hash partitioning columns field empty, hash<br>partitioning is not applied during the creation of the table.<br><br>This field is available when Create if not exist is selected in the<br>Basic settings view.<br><br>See [Hash partitioning](https://kudu.apache.org/docs/schema_design.html#hash-partitioning) for related information. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<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 variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as an end component and requires an input link. |