# tKuduInput

Retrieves data from a Cloudera Kudu table and sends them to the component that follows for transformation.

## tKuduInput properties for Apache Spark Batch

These properties are used to configure tKuduInput running in the Spark Batch Job framework.

The Spark Batch tKuduInput component belongs to the Databases family.

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

## Basic settings

| Properties | Description |
| --- | --- |
| Use an existing configuration | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined. |
| Server connection | Click the [+] button to add as many rows as the Kudu<br>masters you need to use, each row for a master.<br><br>Then enter the locations and the<br>listening ports of the master nodes of the Kudu service to be used.<br><br>This<br>component supports only the Apache Kudu service installed on Cloudera.<br><br>For<br>compatibility information between Apache Kudu and Cloudera, see the related<br>Cloudera documentation: [Compatibility Matrix for Apache Kudu](https://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#pcm_kudu). |
| Schema and Edit schema | <ul> <li> <p>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 <kbd>line</kbd> when naming the            fields.</p> <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> </li> <li> <p>Click <span>Edit        schema</span> to make changes to the schema. If the current schema is of the <span>Repository</span> type, three options are available:</p> <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> </li> </ul> |
| Kudu version | Select the version of Kudu used by your cluster from the drop-down list. |
| Kudu table | Specify the name of the table from which you need to read data. |
| Query mode | Select the mode you want to use to read data from the table:<br><br><ul> <li> <p> <span>Use scan</span>: select this radio box to scan the whole                           Kudu table.</p> </li> <li> <p> <span>Use query</span>: select this radio box to display the                              <span>Query fields</span> table. Then complete this table to                           build the queries to be used.</p> </li> </ul> |

## Advanced settings

| Properties | Description |
| --- | --- |
| Limit | Enter, without double quotation marks, the number of rows you want to<br>display after the scan or the query of your Kudu table.<br><br>This number does not<br>change the number of rows to be actually scanned or queried. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as a start component and requires an<br>output link. |
| Spark Connection | In the Spark<br>Configuration tab in the Run<br>view, define the connection to a given Spark cluster for the whole Job. In<br>addition, since the Job expects its dependent jar files for execution, you must<br>specify the directory in the file system to which these jar files are<br>transferred so that Spark can access these files:<br><br><ul> <li> <div> <span>Yarn mode</span> (Yarn client or Yarn cluster):<ul> <li> <p>When using Google Dataproc, specify a bucket in the                                            <span>Google Storage staging bucket</span>                                        field in the <span>Spark configuration</span>                                        tab.</p> </li> <li> <p>When using HDInsight, specify the blob to be used for Job                                        deployment in the <span>Windows Azure Storage                                            configuration</span> area in the <span>Spark                                            configuration</span> tab.</p> </li> <li>When using Altus, specify the S3 bucket or the Azure                                    Data Lake Storage for Job deployment in the <span>Spark                                        configuration</span> tab.</li> <li> <p>When using on-premises distributions, use                                        the configuration component corresponding to the file system                                        your cluster is using. Typically, this system is HDFS and so                                        use <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration">tHDFSConfiguration</a>.</p> </li> </ul> </div> </li> <li> <p> <span>Standalone mode</span>: use the                            configuration component corresponding to the file system your cluster is                            using, such as <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration-properties-for-apache-spark-batch">tHDFSConfiguration Apache Spark Batch</a> or <a href="https://help.qlik.com/talend/r/en-US/8.0/components/amazon-s3/ts3configuration-properties-for-apache-spark-batch">tS3Configuration Apache Spark Batch</a>.</p> <p>If you are using Databricks without any configuration component present                            in your Job, your business data is written directly in DBFS (Databricks                            Filesystem).</p> </li> </ul><br><br>This connection is effective on a per-Job basis. |

**Related concepts**

* [Writing and reading data from Cloudera Kudu using a Spark Batch Job](https://help.qlik.com/talend/en-US/components/8.0/kudu/tkuduoutput-tkuduconfiguration-tmap-writing-and-reading-data-from-cloudera-kudu-using-spark-batch-job-the "In this scenario, you create a Spark Batch Job using the Kudu components to partition and write data in a Kudu table and then read some of the data from Kudu.")